aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
* Renamed BrowsingContext to WindowProxy in script.Alan Jeffrey2017-05-121-1/+1
|
* Fix various build warningsAaron Cunningham2017-04-241-0/+1
| | | | | | This should remove six separate warnings when building servo. One of the warnings was an unused mut, and the other were various dead code warnings
* Add way to get c_void ptr or c_char from callermckaymatt2017-04-041-1/+2
|
* Auto merge of #15659 - gregkatz:eliminate_transmute_find_enum, r=Ms2gerbors-servo2017-02-211-14/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminate a mem::transmute in CodeGen <!-- Please describe your changes on the following line: --> Eliminate a mem::transmute in CodeGen by changing the find_enum_string_index function to take a slice of pairs and return an enum value. --- <!-- 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 #15587 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] 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. --> <!-- 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/15659) <!-- Reviewable:end -->
| * Eliminate a mem::transmute in CodeGenGregory Katz2017-02-201-14/+13
| |
* | Auto merge of #15585 - servo:CGConstant, r=noxbors-servo2017-02-201-10/+7
|\ \ | |/ |/| | | | | | | | | | | Simplify CGConstant. <!-- 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/15585) <!-- Reviewable:end -->
| * Simplify CGConstant.Ms2ger2017-02-161-10/+7
| |
* | Auto merge of #15589 - servo:RootedTraceable-union, r=noxbors-servo2017-02-191-0/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | Use RootedTraceableBox for unions. <!-- 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/15589) <!-- Reviewable:end -->
| * | Use RootedTraceableBox for unions.Ms2ger2017-02-161-0/+6
| | |
* | | Adds an `as_str()` method to WebIDL enums to hide slice of strings from ↵Gregory Katz2017-02-161-1/+7
|/ / | | | | | | callers. Uses the new method in two places.
* | Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-3/+50
| |
* | Use from_jsval for dictionaries.Ms2ger2017-02-161-2/+2
| |
* | Implement JSTraceable for more types.Ms2ger2017-02-161-0/+2
| |
* | Use Heap for dictionary and union members.Ms2ger2017-02-161-10/+19
| |
* | Share a little less code between the branches for conversion to any.Ms2ger2017-02-161-12/+11
| |
* | Pass isMember to getJSToNativeConversionInfo for unions.Ms2ger2017-02-161-6/+5
|/ | | | Also includes a documentation update for isMember.
* Modify CodegenRust.py to import structs from sequence return valuesZakor Gyula2017-02-131-0/+2
|
* Auto merge of #15453 - servo:unwrapCastableObject, r=noxbors-servo2017-02-081-24/+11
|\ | | | | | | | | | | | | | | Inline unwrapCastableObject into its only caller. <!-- 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/15453) <!-- Reviewable:end -->
| * Inline unwrapCastableObject into its only caller.Ms2ger2017-02-081-24/+11
| |
* | Remove typeNeedsRooting().Ms2ger2017-02-081-7/+0
| | | | | | | | | | | | It is only used once, in a case where it can never have an effect: in case for it to do something, both returnType.isDictionary() and returnType.isGeckoInterface() would need to be true at the same time.
* | Remove pointless assertion in the typedef code.Ms2ger2017-02-081-1/+0
| |
* | Cleanup formatting for typedefs.Ms2ger2017-02-081-5/+10
| |
* | Fix typo in the non-union code path for typedefs.Ms2ger2017-02-081-1/+1
| |
* | Support using typedefs with nullable unions.Ms2ger2017-02-081-1/+2
|/
* Properly root expando objects.Ms2ger2017-02-071-10/+14
|
* Auto merge of #15327 - servo:missing-newline-wrap-panic, r=jdmbors-servo2017-02-011-1/+1
|\ | | | | | | | | | | | | | | Add a missing newline in wrap_panic() calls. <!-- 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/15327) <!-- Reviewable:end -->
| * Add a missing newline in wrap_panic() calls.Ms2ger2017-02-011-1/+1
| |
* | Root the arguments to callback functions.Ms2ger2017-02-011-4/+6
|/ | | | | | | Note that this relies on the fact that Heap<JSVal> and JSVal are binary compatible. Fixes #15324.
* Improve the readability of dictionaries' new() method.Ms2ger2017-01-311-16/+19
|
* Auto merge of #15099 - servo:phf-no-macros, r=jdmbors-servo2017-01-201-11/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove usage of phf_macros. It’s a compiler plugin that uses unstable compiler APIs that are not on a path to stabilization. With this changes, there is one less thing that might break when we update the compiler. For example: https://github.com/sfackler/rust-phf/pull/101 <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] 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. --> <!-- 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/15099) <!-- Reviewable:end -->
| * script codegen: Avoid modifying in-place a generated file.Simon Sapin2017-01-191-11/+14
| |
* | Support dictionaries in unions.Ms2ger2017-01-201-12/+37
|/ | | | Fixes #11612.
* Auto merge of #14994 - jdm:callback_rooting, r=Manishearth,Ms2gerbors-servo2017-01-161-8/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make WebIDL callbacks permanently rooted This replicates the same model that Promise uses right now, because it requires less thinking than coming up with something else. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14447 - [ ] 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/14994) <!-- Reviewable:end -->
| * Add a permanent root to WebIDL callbacks, ensuring they are always safe to ↵Josh Matthews2017-01-131-8/+9
| | | | | | | | store.
* | Remove unused needsRooting field from JSToNativeConversionInfo.Ms2ger2017-01-121-11/+4
|/
* Expose CallbackObject more.Ms2ger2017-01-091-8/+9
| | | | This will make it easier to use new fields added to it.
* Avoid generating literal nulls in DOM bindings.Ms2ger2017-01-061-2/+2
|
* Auto merge of #14859 - servo:CallSetup, r=noxbors-servo2017-01-051-5/+1
|\ | | | | | | | | | | | | | | Simplify CallSetup. <!-- 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/14859) <!-- Reviewable:end -->
| * Simplify CallSetup.Ms2ger2017-01-051-5/+1
| |
* | Fix JS_ObjectIsDate() call in webidl codegen.Eric Anholt2017-01-041-1/+6
| | | | | | | | | | We were missing the import, and the prototype of the function has since changed. Partial fix for #10675
* | Fix is_null_or_undefined() call in codegen to be snake_case.Eric Anholt2017-01-041-1/+1
|/ | | | | After a bit of digging, I couldn't find when it was camelCase. This started getting generated when I added an overload in webgl.
* Don't generate constructor IDs for inline interfacesAnthony Ramine2017-01-031-1/+1
|
* Fix/silence some warningsSimon Sapin2016-12-201-1/+3
|
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-4/+4
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Make WebIDL static methods take a more specific global if possibleAnthony Ramine2016-11-301-4/+5
|
* Make WebIDL constructors take a more specific global if possible (fixes #14071)Rohan Prinja2016-11-301-5/+8
|
* Update js, AGAINAnthony Ramine2016-11-271-3/+3
|
* Update js.Ms2ger2016-11-271-7/+5
|
* script creates methods taking '*mut JSContext' unsafeAbelardo E. Mendoza2016-11-141-15/+22
| | | | rebase + marked the necessary new code as unsafe