aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Reorganise CGDescriptorAnthony Ramine2016-10-021-23/+19
| | | | Group some codegen operations together.
* Auto merge of #13449 - servo:fill_property_descriptor, r=jdmbors-servo2016-09-301-3/+3
|\ | | | | | | | | | | | | | | Pass a MutableHandle to fill_property_descriptor. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13449) <!-- Reviewable:end -->
| * Pass a MutableHandle to fill_property_descriptor.Ms2ger2016-09-271-3/+3
| |
* | Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emiliobors-servo2016-09-291-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix codegen for iterable's forEach method <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #13451 (github issue number if applicable). <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13508) <!-- Reviewable:end -->
| * | Fix codegen for iterable's forEach methodTill Schneidereit2016-09-291-1/+1
| | | | | | | | | | | | | | | | | | The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds. Fixes #13451
* | | Auto merge of #13431 - nox:webidl, r=Ms2gerbors-servo2016-09-281-16/+3
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Update the WebIDL parser <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13431) <!-- Reviewable:end -->
| * | Update the WebIDL parserAnthony Ramine2016-09-261-16/+3
| | |
* | | Auto merge of #13406 - Mylainos:issue-13377, r=jdmbors-servo2016-09-271-12/+3
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract panic-catching for JS engine callbacks into a separate function All of our generated code for script contains inline code like this: ``` let result = panic::catch_unwind(AssertUnwindSafe(|| { ... }; match result { Ok(result) => result, Err(error) => { store_panic_result(error); return false; } } ``` This PR change it to something like this: ``` wrap_panic(|| { ... }, false) ``` --- - [X] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [X] These changes fix #13377 - [ ] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13406) <!-- Reviewable:end -->
| * | Issue #13377 Extract panic-catching for JS engine callbacks into aHugo Thiessard2016-09-261-12/+3
| |/ | | | | | | separate function
* / remove link to #5876 due to everything has been fixed in PR #13333Alexandrov Sergey2016-09-261-1/+0
|/
* Enqueue promise jobs from SpiderMonkey callbacks, and execute them in ↵Mátyás Mustoha2016-09-221-1/+2
| | | | | | batches. Implement native Promise APIs. Add SpiderMonkey hooks for enqueuing promise jobs. Start porting various native Promise APIs.
* Implement binding support for returning and accepting Promises in WebIDL.Josh Matthews2016-09-221-18/+67
|
* Auto merge of #13333 - splav:JS-setters-fix#13327, r=jdmbors-servo2016-09-221-13/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix JS IndexedGetter and NamedSetter bindings generation <!-- Please describe your changes on the following line: --> Fix JS IndexedGetter and NamedSetter bindings generation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13327 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because the test will be in PR for #13129 as currently these setters are used by nobody. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13333) <!-- Reviewable:end -->
| * fix JS IndexedGetter and NamedSetter bindings generationAlexandrov Sergey2016-09-201-13/+7
| |
* | Implement the MozMap type.Ms2ger2016-09-211-7/+24
| | | | | | | | Fixes #13144.
* | Introduce wrapInNativeContainerType.Ms2ger2016-09-211-3/+12
| |
* | Use innerContainerType in getConversionConfigForType.Ms2ger2016-09-211-1/+1
| |
* | Rename innerSequenceType to innerContainerType.Ms2ger2016-09-211-4/+4
| |
* | Handle unsupported types better in getUnionTypeTemplateVars.Ms2ger2016-09-211-13/+1
| |
* | Improve handling of ConversionResult::Failure in unions.Ms2ger2016-09-211-21/+19
| |
* | Improve jsid_to_str's name and documentation.Ms2ger2016-09-211-2/+2
|/
* Auto merge of #13185 - nox:namespaces, r=jdm,Ms2gerbors-servo2016-09-101-23/+62
|\ | | | | | | | | | | | | | | Make console a namespace (fixes #13010) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13185) <!-- Reviewable:end -->
| * Implement WebIDL namespacesAnthony Ramine2016-09-081-21/+60
| |
| * Fix descriptor argument in CGCallGenerator.__init__Anthony Ramine2016-09-071-3/+3
| | | | | | | | It's a descriptor, not a descriptor provider.
* | Auto merge of #13201 - KiChjang:codegen-typedefs, r=noxbors-servo2016-09-091-3/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Properly generate typedef identities in unions Fixes #10605. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13201) <!-- Reviewable:end -->
| * Properly generate typedef identities in unionsKeith Yeung2016-09-071-3/+6
| |
* | Extract mutability out of Reflectable trait.Josh Matthews2016-09-071-0/+1
|/
* Auto merge of #13183 - nox:cleanup-interface, r=Ms2gerbors-servo2016-09-061-18/+14
|\ | | | | | | | | | | | | | | Clean up stuff in bindings::interface <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13183) <!-- Reviewable:end -->
| * Fix case of InterfaceObjectClass in codegenAnthony Ramine2016-09-061-2/+2
| |
| * Remove NonNullJSNativeAnthony Ramine2016-09-061-3/+3
| |
| * Move WebIDL constants machinery to bindings::constantAnthony Ramine2016-09-061-9/+8
| |
| * Simplify InterfaceConstructorBehaviorAnthony Ramine2016-09-061-4/+1
| |
* | Add missing IsCallable checks.Ms2ger2016-09-061-2/+12
|/
* Use Option<T> to return from gettersAnthony Ramine2016-08-301-10/+9
| | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* Compile WebIDL return type "object" to NonZero<*mut JSObject>Anthony Ramine2016-08-301-1/+5
|
* Convert imports in generate_imports into one per line, so that it can easily ↵tp6vup542016-08-271-71/+195
| | | | add new ones with alphabetical order.
* Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-261-10/+8
|
* Implement [Replaceable] (fixes #13033)Anthony Ramine2016-08-261-8/+30
|
* Pass the receiver to get_property_on_prototype (fixes #11600)Anthony Ramine2016-08-251-1/+1
|
* Make has_property_on_prototype fallibleAnthony Ramine2016-08-251-10/+25
|
* Call JS_SetImmutablePrototype for prototypes of globals (fixes #13023)Anthony Ramine2016-08-251-21/+24
|
* Define interface members on the global object directly (fixes #4593)Anthony Ramine2016-08-251-9/+37
|
* Pass a MutableHandleObject to create_global_objectAnthony Ramine2016-08-251-6/+7
|
* Make create_global_object take a &'static ClassAnthony Ramine2016-08-251-1/+1
|
* Rename utils::create_dom_object to interface::create_global_objectAnthony Ramine2016-08-251-15/+15
|
* Split global logic out of CGWrapMethodAnthony Ramine2016-08-251-25/+40
|
* Auto merge of #12819 - jdm:iterable2, r=noxbors-servo2016-08-241-140/+380
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support pair and value iterable WebIDL bindings The actual iterator implementation and JSAPI calls related to setting up the interface are ported directly from Gecko's Codegen.py, IterableIterator.h, and IterableIterator.webidl. The changes to support multiple interfaces in one file are required because the internal iterator interface the parser generates gets associated with the original interface's WebIDL file. It seemed like a good time to address #571 in that case. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12628 and fix #571. - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12819) <!-- Reviewable:end -->
| * Use named arguments for CGImports.Josh Matthews2016-08-241-3/+10
| |
| * Set up the iterator prototype as the prototype of iterator interfaces, and ↵Josh Matthews2016-08-241-4/+55
| | | | | | | | alias forEach to the entries method.
| * Implement pair iterators in WebIDL interfaces.Josh Matthews2016-08-241-11/+78
| |