Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge CGThing.declare and CGThing.define. | Ms2ger | 2014-03-11 | 1 | -133/+60 |
| | | | | | This distincion is carried over from the C++ codegen, but it has no meaning in Rust. | ||||
* | Completely rewrite the code to convert JSVals to unions. | Ms2ger | 2014-03-11 | 1 | -377/+176 |
| | | | | | | This code works correctly for the two unions currently in use, and raises exceptions in codegen for most other cases. I will implement those cases when the need arises. | ||||
* | Replace GetReflector by an implementation of ToJSValConvertible. | Ms2ger | 2014-03-11 | 1 | -37/+3 |
| | |||||
* | Reorder GetProtoObject. | Ms2ger | 2014-03-11 | 1 | -5/+6 |
| | |||||
* | Cleanup and simplify CGImports. | Ms2ger | 2014-03-11 | 1 | -133/+124 |
| | |||||
* | Cleanup the code in PrototypeList(). | Ms2ger | 2014-03-11 | 1 | -43/+5 |
| | |||||
* | Stop pointlessly indenting GetProtoObject. | Ms2ger | 2014-03-11 | 1 | -1/+1 |
| | |||||
* | Remove some dead code from CGAbstractMethod._decorators. | Ms2ger | 2014-03-11 | 1 | -8/+6 |
| | |||||
* | Remove unused CGAbstractStaticMethod class. | Ms2ger | 2014-03-11 | 1 | -20/+1 |
| | |||||
* | auto merge of #1877 : Ms2ger/servo/dead-codegen-code, r=jdm | bors-servo | 2014-03-10 | 1 | -200/+6 |
|\ | |||||
| * | Remove code from codegen that is nowhere close to working. | Ms2ger | 2014-03-10 | 1 | -200/+6 |
| | | |||||
* | | Replace jsval_to_str and jsval_to_domstring with a FromJSValConvertible ↵ | Ms2ger | 2014-03-10 | 1 | -20/+19 |
| | | | | | | | | implementation. | ||||
* | | Replace str_to_jsval and domstring_to_jsval by a ToJSValConvertible ↵ | Ms2ger | 2014-03-10 | 1 | -6/+3 |
| | | | | | | | | implementation. | ||||
* | | Allow passing options to FromJSValConvertible::from_jsval. | Ms2ger | 2014-03-10 | 1 | -1/+1 |
| | | |||||
* | | Pass a JSContext to ToJSValConvertible::to_jsval. | Ms2ger | 2014-03-10 | 1 | -1/+1 |
|/ | |||||
* | auto merge of #1861 : Ms2ger/servo/split-JSValConvertible, r=jdm | bors-servo | 2014-03-10 | 1 | -3/+3 |
|\ | | | | | | | | | Later, we'll want to implement variations of the conversion *from* JS, but not the conversion *to* JS. | ||||
| * | Split JSValConvertible into two traits. | Ms2ger | 2014-03-08 | 1 | -3/+3 |
| | | | | | | | | | | Later, we'll want to implement variations of the conversion *from* JS, but not the conversion *to* JS. | ||||
* | | Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*. | Ms2ger | 2014-03-09 | 1 | -26/+18 |
| | | |||||
* | | Use FooValue() functions. | Ms2ger | 2014-03-09 | 1 | -31/+32 |
| | | |||||
* | | Move JSVal into the jsval module. | Ms2ger | 2014-03-08 | 1 | -2/+4 |
|/ | |||||
* | Remove a pointless argIsPointer local variable. | Ms2ger | 2014-03-07 | 1 | -8/+3 |
| | |||||
* | auto merge of #1850 : Ms2ger/servo/init-interface, r=jdm | bors-servo | 2014-03-07 | 1 | -19/+5 |
|\ | | | | | | | This allows Rust to check that we've actually initialized all cases. | ||||
| * | Don't initialize nullable interface arguments to None in codegen. | Ms2ger | 2014-03-07 | 1 | -19/+5 |
| | | | | | | | | This allows Rust to check that we've actually initialized all cases. | ||||
* | | auto merge of #1851 : Ms2ger/servo/optional-jsval, r=jdm | bors-servo | 2014-03-07 | 1 | -2/+10 |
|\ \ | | | | | | | | | | Right now, we silently default to null, which is somewhat fishy. | ||||
| * | | Pass Option<JSVal> for optional JSVals. | Ms2ger | 2014-03-07 | 1 | -2/+10 |
| |/ | |||||
* | | auto merge of #1848 : Ms2ger/servo/refactor-primitive-fromjsval, r=jdm | bors-servo | 2014-03-07 | 1 | -39/+23 |
|\ \ | | | | | | | | | | Probably best read commit-by-commit. | ||||
| * | | Common up some more code in the handling of default values for primitive types. | Ms2ger | 2014-03-06 | 1 | -12/+7 |
| | | | |||||
| * | | Simplify the code flow in the conversion to primitive types so that default ↵ | Ms2ger | 2014-03-06 | 1 | -25/+22 |
| | | | | | | | | | | | | values are handled together. | ||||
| * | | Common up some code in the conversion to nullable and non-nullable primitive ↵ | Ms2ger | 2014-03-06 | 1 | -19/+11 |
| |/ | | | | | | | types. | ||||
* | | auto merge of #1787 : hgentry/servo/mozilla-servo, r=jdm | bors-servo | 2014-03-06 | 1 | -19/+83 |
|\ \ | |/ |/| | | | Fixes #1779. Most of them were able to be replaced without issue. | ||||
| * | Removed glob imports from CodegenRust.py | hgentry | 2014-03-06 | 1 | -19/+83 |
| | | | | | | | | | | | | | | | | Removed glob imports from CodegenRust.py (code review changes) Removed many glob imports from CodegenRust.py (code review changes) Removed glob imports from CodegenRust.py (cleanup) | ||||
* | | Avoid a type error with a non-null default value for an optional nullable ↵ | Ms2ger | 2014-03-06 | 1 | -7/+13 |
| | | | | | | | | string argument. | ||||
* | | Avoid a type error with a non-null default value for an optional nullable ↵ | Ms2ger | 2014-03-06 | 1 | -0/+4 |
| | | | | | | | | primitive argument. | ||||
* | | Inline dataLoc in the one place that can see it and the one place that can't. | Ms2ger | 2014-03-06 | 1 | -5/+4 |
|/ | |||||
* | Stop sticking a Page in the JSContext's private. | Ms2ger | 2014-03-05 | 1 | -1/+1 |
| | |||||
* | Remove some dead code from CGCreateInterfaceObjectsMethod. | Ms2ger | 2014-03-05 | 1 | -33/+1 |
| | |||||
* | auto merge of #1821 : Ms2ger/servo/result-JSValConvertible, r=jdm | bors-servo | 2014-03-05 | 1 | -4/+4 |
|\ | |||||
| * | Return Result from JSValConvertible::from_jsval. | Ms2ger | 2014-03-04 | 1 | -4/+4 |
| | | |||||
* | | auto merge of #1814 : Ms2ger/servo/more-primitive-setters, r=jdm | bors-servo | 2014-03-05 | 1 | -41/+16 |
|\| | |||||
| * | Rewrite the codegen for nullable primitives to use JSValConvertible. | Ms2ger | 2014-03-04 | 1 | -21/+14 |
| | | |||||
| * | Implement support for returning nullable primitive types. | Ms2ger | 2014-03-04 | 1 | -3/+3 |
| | | |||||
| * | Use JSValConvertible::to_jsval from codegen. | Ms2ger | 2014-03-04 | 1 | -19/+1 |
| | | |||||
* | | auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdm | bors-servo | 2014-03-05 | 1 | -25/+15 |
|\ \ | |||||
| * | | Get the Page directly off the Window in CreateBindingJSObject. | Ms2ger | 2014-03-04 | 1 | -2/+1 |
| | | | |||||
| * | | Pass &JS<Window> to the Wrap functions in codegen. | Ms2ger | 2014-03-04 | 1 | -6/+7 |
| | | | |||||
| * | | Stop passing the scope argument to global object bindings' Wrap functions. | Ms2ger | 2014-03-04 | 1 | -4/+6 |
| | | | |||||
| * | | Merge the Wrap and Wrap_ functions in codegen. | Ms2ger | 2014-03-04 | 1 | -14/+2 |
| |/ | |||||
* | | Get the Page from the global object for ResolveProperty. | Ms2ger | 2014-03-04 | 1 | -7/+5 |
| | | |||||
* | | Return a JS<Window> from global_object_for_{dom,js}_object. | Ms2ger | 2014-03-04 | 1 | -2/+1 |
| | | |||||
* | | When calling constructors, retrieve the global object from the callee rather ↵ | Ms2ger | 2014-03-04 | 1 | -7/+2 |
|/ | | | | than the JSContext. |