aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge CGThing.declare and CGThing.define.Ms2ger2014-03-111-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.Ms2ger2014-03-111-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.Ms2ger2014-03-111-37/+3
|
* Reorder GetProtoObject.Ms2ger2014-03-111-5/+6
|
* Cleanup and simplify CGImports.Ms2ger2014-03-111-133/+124
|
* Cleanup the code in PrototypeList().Ms2ger2014-03-111-43/+5
|
* Stop pointlessly indenting GetProtoObject.Ms2ger2014-03-111-1/+1
|
* Remove some dead code from CGAbstractMethod._decorators.Ms2ger2014-03-111-8/+6
|
* Remove unused CGAbstractStaticMethod class.Ms2ger2014-03-111-20/+1
|
* auto merge of #1877 : Ms2ger/servo/dead-codegen-code, r=jdmbors-servo2014-03-101-200/+6
|\
| * Remove code from codegen that is nowhere close to working.Ms2ger2014-03-101-200/+6
| |
* | Replace jsval_to_str and jsval_to_domstring with a FromJSValConvertible ↵Ms2ger2014-03-101-20/+19
| | | | | | | | implementation.
* | Replace str_to_jsval and domstring_to_jsval by a ToJSValConvertible ↵Ms2ger2014-03-101-6/+3
| | | | | | | | implementation.
* | Allow passing options to FromJSValConvertible::from_jsval.Ms2ger2014-03-101-1/+1
| |
* | Pass a JSContext to ToJSValConvertible::to_jsval.Ms2ger2014-03-101-1/+1
|/
* auto merge of #1861 : Ms2ger/servo/split-JSValConvertible, r=jdmbors-servo2014-03-101-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.Ms2ger2014-03-081-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_*.Ms2ger2014-03-091-26/+18
| |
* | Use FooValue() functions.Ms2ger2014-03-091-31/+32
| |
* | Move JSVal into the jsval module.Ms2ger2014-03-081-2/+4
|/
* Remove a pointless argIsPointer local variable.Ms2ger2014-03-071-8/+3
|
* auto merge of #1850 : Ms2ger/servo/init-interface, r=jdmbors-servo2014-03-071-19/+5
|\ | | | | | | This allows Rust to check that we've actually initialized all cases.
| * Don't initialize nullable interface arguments to None in codegen.Ms2ger2014-03-071-19/+5
| | | | | | | | This allows Rust to check that we've actually initialized all cases.
* | auto merge of #1851 : Ms2ger/servo/optional-jsval, r=jdmbors-servo2014-03-071-2/+10
|\ \ | | | | | | | | | Right now, we silently default to null, which is somewhat fishy.
| * | Pass Option<JSVal> for optional JSVals.Ms2ger2014-03-071-2/+10
| |/
* | auto merge of #1848 : Ms2ger/servo/refactor-primitive-fromjsval, r=jdmbors-servo2014-03-071-39/+23
|\ \ | | | | | | | | | Probably best read commit-by-commit.
| * | Common up some more code in the handling of default values for primitive types.Ms2ger2014-03-061-12/+7
| | |
| * | Simplify the code flow in the conversion to primitive types so that default ↵Ms2ger2014-03-061-25/+22
| | | | | | | | | | | | values are handled together.
| * | Common up some code in the conversion to nullable and non-nullable primitive ↵Ms2ger2014-03-061-19/+11
| |/ | | | | | | types.
* | auto merge of #1787 : hgentry/servo/mozilla-servo, r=jdmbors-servo2014-03-061-19/+83
|\ \ | |/ |/| | | Fixes #1779. Most of them were able to be replaced without issue.
| * Removed glob imports from CodegenRust.pyhgentry2014-03-061-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 ↵Ms2ger2014-03-061-7/+13
| | | | | | | | string argument.
* | Avoid a type error with a non-null default value for an optional nullable ↵Ms2ger2014-03-061-0/+4
| | | | | | | | primitive argument.
* | Inline dataLoc in the one place that can see it and the one place that can't.Ms2ger2014-03-061-5/+4
|/
* Stop sticking a Page in the JSContext's private.Ms2ger2014-03-051-1/+1
|
* Remove some dead code from CGCreateInterfaceObjectsMethod.Ms2ger2014-03-051-33/+1
|
* auto merge of #1821 : Ms2ger/servo/result-JSValConvertible, r=jdmbors-servo2014-03-051-4/+4
|\
| * Return Result from JSValConvertible::from_jsval.Ms2ger2014-03-041-4/+4
| |
* | auto merge of #1814 : Ms2ger/servo/more-primitive-setters, r=jdmbors-servo2014-03-051-41/+16
|\|
| * Rewrite the codegen for nullable primitives to use JSValConvertible.Ms2ger2014-03-041-21/+14
| |
| * Implement support for returning nullable primitive types.Ms2ger2014-03-041-3/+3
| |
| * Use JSValConvertible::to_jsval from codegen.Ms2ger2014-03-041-19/+1
| |
* | auto merge of #1811 : Ms2ger/servo/Wrap_, r=jdmbors-servo2014-03-051-25/+15
|\ \
| * | Get the Page directly off the Window in CreateBindingJSObject.Ms2ger2014-03-041-2/+1
| | |
| * | Pass &JS<Window> to the Wrap functions in codegen.Ms2ger2014-03-041-6/+7
| | |
| * | Stop passing the scope argument to global object bindings' Wrap functions.Ms2ger2014-03-041-4/+6
| | |
| * | Merge the Wrap and Wrap_ functions in codegen.Ms2ger2014-03-041-14/+2
| |/
* | Get the Page from the global object for ResolveProperty.Ms2ger2014-03-041-7/+5
| |
* | Return a JS<Window> from global_object_for_{dom,js}_object.Ms2ger2014-03-041-2/+1
| |
* | When calling constructors, retrieve the global object from the callee rather ↵Ms2ger2014-03-041-7/+2
|/ | | | than the JSContext.