Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure that optional primitive arguments aren't treated as nullable. | Ms2ger | 2014-04-17 | 1 | -7/+9 |
| | | | | | | | | | | By forgetting the Some(), we caused type inference to convert to Option<T> for optional non-nullable primitive arguments, and to Option<Option<T>> for optional nullable primitive arguments (essentially the same thing). This change brings the primitive codegen in line with the DOMString codegen. Using distinct types for optionality and nullability would have prevented this issue. | ||||
* | Remove unwrap_object. | Ms2ger | 2014-04-16 | 1 | -8/+7 |
| | | | | | | There is no good reason to have both unwrap_object and unwrap_jsmanaged. Removing unwrap_object simplifies the codegen and makes further simplifications easier. | ||||
* | auto merge of #2112 : Ms2ger/servo/IDLInterface-JS, r=jdm | bors-servo | 2014-04-16 | 1 | -0/+29 |
|\ | |||||
| * | Implement FromJSValConvertible for JS<T>. | Ms2ger | 2014-04-15 | 1 | -0/+29 |
| | | |||||
* | | auto merge of #2114 : Ms2ger/servo/unused-obj-local-arg, r=jdm | bors-servo | 2014-04-15 | 1 | -6/+3 |
|\ \ | | | | | | | | | | | | | This removes the local variable and prefixes the argument with an underscore. Neither is used right now. | ||||
| * | | Remove unused variable 'obj' from binding functions. | Ms2ger | 2014-04-15 | 1 | -6/+3 |
| |/ | | | | | | | | | This removes the local variable and prefixes the argument with an underscore. Neither is used right now. | ||||
* / | Remove the return value from DefineDOMInterface. | Ms2ger | 2014-04-15 | 1 | -3/+3 |
|/ | | | | | This moves the assertion from its only caller into the function itself, to clarify that we don't intent to deal with any failure here. | ||||
* | auto merge of #2093 : Ms2ger/servo/DOMObjectPointerType, r=jdm | bors-servo | 2014-04-10 | 1 | -10/+4 |
|\ | |||||
| * | Remove DOMObjectPointerType. | Ms2ger | 2014-04-10 | 1 | -10/+4 |
| | | |||||
* | | Make GetCallableProperty more rustic. | Ms2ger | 2014-04-10 | 1 | -9/+9 |
|/ | |||||
* | Remove getWrapTemplateForType and simplify wrapForType. | Ms2ger | 2014-04-10 | 1 | -87/+16 |
| | |||||
* | Use ToJSValConvertible for all conversions to JSVal. | Ms2ger | 2014-04-10 | 1 | -72/+2 |
| | |||||
* | Remove all traces of C wrappers for SpiderMonkey class stubs. | Josh Matthews | 2014-04-08 | 1 | -47/+47 |
| | |||||
* | auto merge of #2051 : Ms2ger/servo/more-xray, r=jdm | bors-servo | 2014-04-07 | 1 | -31/+12 |
|\ | | | | | | | On top of #2050 | ||||
| * | Remove some more xray code. | Ms2ger | 2014-04-06 | 1 | -31/+12 |
| | | |||||
* | | auto merge of #2050 : sankha93/servo/rmxray, r=Ms2ger | bors-servo | 2014-04-06 | 1 | -109/+2 |
|\| | |||||
| * | Remove XRay related stuff from codegen (fixes #1936) | Sankha Narayan Guria | 2014-04-07 | 1 | -109/+2 |
| | | |||||
* | | Use ToJSValConvertible to convert nullable enums to JSVal. | Ms2ger | 2014-04-06 | 1 | -5/+3 |
| | | |||||
* | | Use ToJSValConvertible to convert enums to JSVal. | Ms2ger | 2014-04-06 | 1 | -9/+11 |
| | | |||||
* | | Remove EnumEntry, as Rust already provides O(1) access to the string length. | Ms2ger | 2014-04-06 | 1 | -3/+2 |
| | | |||||
* | | Move all the generated code for enums into CGEnum. | Ms2ger | 2014-04-06 | 1 | -22/+22 |
|/ | |||||
* | Upgrade rust. | Ms2ger | 2014-04-04 | 1 | -9/+9 |
| | |||||
* | Annotate 'inline' to TCast::to/to_unchecked/from. | Tetsuharu OHZEKI | 2014-03-23 | 1 | -0/+3 |
| | |||||
* | Remove |unused| field from DOMClass.(fixes #1960) | lpy | 2014-03-22 | 1 | -1/+0 |
| | |||||
* | auto merge of #1950 : Ms2ger/servo/nullable-string-with-null-default, r=jdm | bors-servo | 2014-03-21 | 1 | -2/+1 |
|\ | |||||
| * | Fix code generation for a null default value for nullable string arguments. | Ms2ger | 2014-03-20 | 1 | -2/+1 |
| | | |||||
* | | Make unwrap and unwrap_object less generic. | Ms2ger | 2014-03-20 | 1 | -2/+2 |
| | | |||||
* | | Remove support for non-castable arguments. | Ms2ger | 2014-03-20 | 1 | -30/+16 |
|/ | |||||
* | Stop returning None from getRetvalDeclarationForType and update documentation. | Ms2ger | 2014-03-20 | 1 | -13/+7 |
| | |||||
* | Make the result and result_fallible variables immutable. | Ms2ger | 2014-03-20 | 1 | -2/+2 |
| | |||||
* | Remove the declareResult argument to CGCallGenerator's constructor. | Ms2ger | 2014-03-20 | 1 | -2/+2 |
| | |||||
* | Use CGIfElseWrapper in a few more places. | Ms2ger | 2014-03-20 | 1 | -20/+12 |
| | |||||
* | Remove the codeToSetNull argument to wrapObjectTemplate. | Ms2ger | 2014-03-20 | 1 | -6/+4 |
| | |||||
* | Remove the preSuccess and postSuccess arguments to ↵ | Ms2ger | 2014-03-20 | 1 | -17/+6 |
| | | | | | | getJSToNativeConversionTemplate. They were used for unions until 06f9afdad52cba426aedd45d0e08a7b2bdecc8f4. | ||||
* | Remove unused import of std::intrinsics::uninit. | Ms2ger | 2014-03-20 | 1 | -1/+0 |
| | |||||
* | auto merge of #1864 : saneyuki/servo/split_cast_to, r=jdm | bors-servo | 2014-03-20 | 1 | -2/+9 |
|\ | | | | | | | fix #1836 | ||||
| * | Split TCast::to into TCast::to_unchecked and TCast::to. | Tetsuharu OHZEKI | 2014-03-20 | 1 | -2/+9 |
| | | |||||
* | | auto merge of #1943 : lpy/servo/issue1933, r=jdm | bors-servo | 2014-03-20 | 1 | -0/+2 |
|\ \ | | | | | | | | | | see #1933 | ||||
| * | | Force infallible binding methods to return void.(fixes #1933) | lpy | 2014-03-20 | 1 | -0/+2 |
| | | | |||||
* | | | auto merge of #1945 : Ms2ger/servo/1196-isDefinitelyObject, r=jdm | bors-servo | 2014-03-20 | 1 | -2/+2 |
|\ \ \ | |_|/ |/| | | | | | ... and fix nearby whitespace (fixes #1196). | ||||
| * | | Pass the isDefinitelyObject argument to wrapObjectTemplate and fix nearby ↵ | Ms2ger | 2014-03-20 | 1 | -2/+2 |
| | | | | | | | | | | | | whitespace (fixes #1196). | ||||
* | | | auto merge of #1944 : lpy/servo/issue1938, r=Ms2ger | bors-servo | 2014-03-20 | 1 | -3/+3 |
|\ \ \ | |/ / |/| | | | | | see #1938 | ||||
| * | | Rename squirrel_away_unboxed to squirrel_away_unique.(fixes #1938) | lpy | 2014-03-20 | 1 | -3/+3 |
| |/ | |||||
* | | auto merge of #1909 : Ms2ger/servo/optional-defaults, r=jdm | bors-servo | 2014-03-19 | 1 | -9/+6 |
|\ \ | |/ |/| | | | ...(fixes #1813). | ||||
| * | Pass Option<T> for optional primitive arguments without a default value ↵ | Ms2ger | 2014-03-19 | 1 | -9/+6 |
| | | | | | | | | (fixes #1813). | ||||
* | | auto merge of #1915 : Ms2ger/servo/wrap-return-js, r=jdm | bors-servo | 2014-03-19 | 1 | -15/+10 |
|\ \ | | | | | | | | | | | | | | | | This lets us avoid the sketchy tricks in JS::new and Window::new, where we kept an unsafe pointer to the native object across the Wrap call that consumed the owned pointer. | ||||
| * | | Return a JS<T> from *Binding::Wrap rather than a JSObject. | Ms2ger | 2014-03-14 | 1 | -15/+10 |
| | | | | | | | | | | | | | | | | | | This lets us avoid the sketchy tricks in JS::new and Window::new, where we kept an unsafe pointer to the native object across the Wrap call that consumed the owned pointer. | ||||
* | | | auto merge of #1910 : Ms2ger/servo/dead-arg-CGAbstractMethod, r=jdm | bors-servo | 2014-03-19 | 1 | -5/+5 |
|\ \ \ | |_|/ |/| | | |||||
| * | | Remove a dead argument from CGAbstractMethod methods. | Ms2ger | 2014-03-13 | 1 | -5/+5 |
| |/ | |||||
* | | Rust upgrade for new master rebase | Lars Bergstrom | 2014-03-18 | 1 | -3/+3 |
| | |