Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prevent unused result warning in codegen. Always expect success for now. | Glenn Watson | 2014-05-05 | 1 | -1/+1 |
| | |||||
* | Address review comments. | Josh Matthews | 2014-05-03 | 1 | -37/+29 |
| | |||||
* | Make dictionaries contain Root<T> values instead of JS<T>, ensuring that ↵ | Josh Matthews | 2014-05-03 | 1 | -5/+10 |
| | | | | they will not be collected while the dictionary is alive. | ||||
* | Address review comments. | Josh Matthews | 2014-05-03 | 1 | -19/+3 |
| | |||||
* | Remove all root collections. | Josh Matthews | 2014-05-03 | 1 | -20/+18 |
| | |||||
* | s/Unrooted/Temporary/g | Josh Matthews | 2014-05-03 | 1 | -3/+3 |
| | |||||
* | Remove abstract_self. | Josh Matthews | 2014-05-03 | 1 | -18/+0 |
| | |||||
* | Move WebIDL methods to traits implemented by JSRef types. | Josh Matthews | 2014-05-03 | 1 | -23/+48 |
| | |||||
* | Remove JS::get/get_mut to enforce sound rooting practices. | Josh Matthews | 2014-05-03 | 1 | -25/+4 |
| | |||||
* | Implement safe rooting strategy via Unrooted, Root, JSRef, and JS. | Josh Matthews | 2014-05-03 | 1 | -5/+41 |
| | |||||
* | Turn on GC all the time. Fix rooting errors during parsing and storing ↵ | Josh Matthews | 2014-05-03 | 1 | -30/+74 |
| | | | | timers. Fix borrow errors during tracing. | ||||
* | auto merge of #2295 : Ms2ger/servo/JSCLASS_DOM_GLOBAL, r=jdm | bors-servo | 2014-05-03 | 1 | -6/+4 |
|\ | | | | | | | | | It seems unlikely that this will ever be hit, but potentially hard to figure out if it ever is hit. | ||||
| * | Add JSCLASS_DOM_GLOBAL to DOM global classes, and assert it is used. | Ms2ger | 2014-05-03 | 1 | -6/+4 |
| | | | | | | | | | | It seems unlikely that this will ever be hit, but potentially hard to figure out if it ever is hit. | ||||
* | | Webidl and basic implementation of XHR object | Manish Goregaokar | 2014-05-03 | 1 | -16/+6 |
|/ | |||||
* | auto merge of #2290 : saneyuki/servo/export, r=jdm | bors-servo | 2014-05-01 | 1 | -2/+3 |
|\ | | | | | | | | | | | | | - Fix #2128 - Take over from #2220 I didn't change `InterfaceTypes.rs` to `type.rs` because `type` is very common name which might be troublesome. | ||||
| * | Remove the 'pub use self::BindingDeclarations::*;' export. | Tetsuharu OHZEKI | 2014-05-01 | 1 | -2/+3 |
| | | |||||
* | | Implement WebIDL codegen for ByteString. | Ms2ger | 2014-05-01 | 1 | -1/+25 |
| | | |||||
* | | Change some isString() checks in the WebIDL codegen to isDOMString() checks. | Ms2ger | 2014-05-01 | 1 | -2/+2 |
|/ | |||||
* | Merge UnionConversions() into UnionTypes(). | Ms2ger | 2014-04-29 | 1 | -26/+2 |
| | | | | | It's not very useful to have one but not the other, so it makes more sense to deal with them together. | ||||
* | Reuse getTypes in UnionConversions(). | Ms2ger | 2014-04-29 | 1 | -13/+2 |
| | | | | | This should be equivalent, except that the removed code ignores return values (which we currently don't support). | ||||
* | Remove C++-specific union codegen code. | Ms2ger | 2014-04-29 | 1 | -56/+4 |
| | |||||
* | auto merge of #2194 : Ms2ger/servo/typeerror-2, r=jdm | bors-servo | 2014-04-28 | 1 | -3/+4 |
|\ | |||||
| * | Use more rustic names for ThrowTypeError and infrastructure. | Ms2ger | 2014-04-28 | 1 | -2/+2 |
| | | |||||
| * | Move ThrowTypeError to error.rs. | Ms2ger | 2014-04-28 | 1 | -1/+1 |
| | | |||||
| * | Throw a TypeError when too few arguments are passed. | Ms2ger | 2014-04-28 | 1 | -3/+4 |
| | | |||||
* | | auto merge of #2244 : Ms2ger/servo/optional-rewrite, r=jdm | bors-servo | 2014-04-28 | 1 | -49/+36 |
|\ \ | |/ |/| | | | This moves all handling of `isOptional` (except `type.isCallback()`, which I believe @jdm is rewriting in #2204) into one place. | ||||
| * | Use handleOptional for callback interface conversion. | Ms2ger | 2014-04-28 | 1 | -1/+1 |
| | | |||||
| * | Use handleOptional for dictionary conversion. | Ms2ger | 2014-04-28 | 1 | -1/+1 |
| | | | | | | | | | | This does not have any effect, as isOptional is always False for dictionaries. This change is made only for consistency. | ||||
| * | Use handleOptional for interface conversion. | Ms2ger | 2014-04-27 | 1 | -2/+2 |
| | | |||||
| * | Move optional/nullable handling out of CastableObjectUnwrapper. | Ms2ger | 2014-04-27 | 1 | -15/+11 |
| | | | | | | | | | | | | This puts the code that wraps the type in Option<> and the code that wraps the expression in Some() into the same if block, which should clarify the code. | ||||
| * | Use handleOptional for the enumeration conversion. | Ms2ger | 2014-04-26 | 1 | -1/+1 |
| | | |||||
| * | Use handleOptional for the DOMString conversion. | Ms2ger | 2014-04-26 | 1 | -13/+4 |
| | | |||||
| * | Use handleOptional for the union conversion. | Ms2ger | 2014-04-26 | 1 | -1/+1 |
| | | | | | | | | Note that unions didn't handle optional arguments correctly before. | ||||
| * | Use handleOptional for the 'any' conversion. | Ms2ger | 2014-04-26 | 1 | -7/+2 |
| | | |||||
| * | Implement a cleaner way of dealing with optional arguments in codegen and ↵ | Ms2ger | 2014-04-26 | 1 | -8/+13 |
| | | | | | | | | | | | | | | use it for primitive types. This puts the Some constructor outside the match, making the actual generating code independent of the optionality of the argument. | ||||
* | | auto merge of #2237 : Ms2ger/servo/union-fromjsvalconvertible, r=jdm | bors-servo | 2014-04-28 | 1 | -18/+19 |
|\| | | | | | | | With bonus codegen tests. | ||||
| * | Use FromJSValConvertible's nullable conversion code. | Ms2ger | 2014-04-26 | 1 | -10/+2 |
| | | |||||
| * | Implement FromJSValConvertible for union types. | Ms2ger | 2014-04-26 | 1 | -9/+18 |
| | | |||||
* | | This batch of changes upgrades Servo to work with the Rust upgrade as of | Lars Bergstrom | 2014-04-27 | 1 | -5/+5 |
|/ | | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries. | ||||
* | Remove the holderType return value of getJSToNativeConversionTemplate. | Ms2ger | 2014-04-25 | 1 | -46/+15 |
| | | | | It is always None. | ||||
* | auto merge of #2228 : Ms2ger/servo/object-unwrapping-expressionify, r=jdm | bors-servo | 2014-04-25 | 1 | -73/+45 |
|\ | |||||
| * | Rewrite dictionary codegen to initialize members directly into the struct. | Ms2ger | 2014-04-25 | 1 | -35/+14 |
| | | |||||
| * | Remove the 'retval' local variable from union TryConvertTo methods. | Ms2ger | 2014-04-25 | 1 | -4/+1 |
| | | |||||
| * | Move responsibility for assigning to ${declName} out of ↵ | Ms2ger | 2014-04-25 | 1 | -18/+20 |
| | | | | | | | | | | | | getJSToNativeConversionTemplate. This commit does not make any change to the generated code. | ||||
| * | Rewrite the enumeration unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -3/+3 |
| | | |||||
| * | Rewrite the primitive unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -5/+5 |
| | | |||||
| * | Rewrite the any unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -5/+2 |
| | | |||||
| * | Rewrite the DOMString unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -6/+5 |
| | | |||||
| * | Rewrite the union unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -5/+5 |
| | | |||||
| * | Rewrite the interface unwrapping to return an expression. | Ms2ger | 2014-04-25 | 1 | -9/+7 |
| | |