aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Kill dead callback codegen codeAnthony Ramine2018-01-251-61/+4
| |
| * Make callbacks' new methods unsafeAnthony Ramine2018-01-251-2/+2
| | | | | | | | They take raw pointers to contexts and objects.
| * Replace NonNullJSObjectPtr with std::ptr::NonNull<JSObject>Simon Sapin2018-01-221-3/+3
| |
| * Fix tyvar_behind_raw_pointer warningsSimon Sapin2018-01-101-21/+21
| | | | | | | | https://github.com/rust-lang/rust/issues/46906
| * Root sequence<{any,object}> IDL arguments using CustomAutoRooterIgor Matuszewski2018-01-051-5/+38
| | | | | | | | Also pulls in mozjs 0.1.10 to support the change.
| * Moved pop_current_element_queue() and push_new_element_queue() to ↵olmanz2017-11-161-2/+2
| | | | | | | | htmlconstructor.rs
| * Moved function html_constructor() from interface.rs to new file ↵olmanz2017-11-161-1/+1
| | | | | | | | htmlconstructor.rs
| * Fix binding generation for overloaded functions with optionals and default ↵Fernando Jiménez Moreno2017-11-111-1/+3
| | | | | | | | values
| * Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-4/+4
| |
| * Fix Const IDL value compilation errors in codegenImanol Fernandez2017-10-251-3/+13
| |
| * Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-4/+4
| | | | | | | | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
| * Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-4/+4
| | | | | | | | | | It still needs dependencies update to remove all the other bitflags versions.
| * Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
| * Update rust-mozjsSimon Sapin2017-10-161-11/+12
| |
| * Don’t rely on unstable 'const fn's in rust-mozjs, so we can remove them.Simon Sapin2017-10-161-12/+10
| |
| * Move remaining uses of NonZero to our nonzero crateSimon Sapin2017-10-161-1/+0
| |
| * Replace NonZero<*mut JSObject> with a wrapper to enable local trait impls.Simon Sapin2017-10-161-1/+3
| |
| * Implement EventListenerOptions for EventTargetGuillaume Gomez2017-09-301-2/+1
| | | | | | | | For now, only "capture" is supported.
| * Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-11/+15
| | | | | | | | | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
| * Rename LayoutJS<T> to LayoutDom<T>Anthony Ramine2017-09-261-1/+1
| |
| * Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-4/+4
| |
| * Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-6/+6
| |
| * Use more named string interpolation.Josh Matthews2017-09-251-10/+13
| |
| * Remove almost all uses of Heap::new.Josh Matthews2017-09-251-3/+7
| |
| * Initialize rooted dictionaries to a stable value before setting fields.Josh Matthews2017-09-251-22/+30
| |
| * Derive the Default trait for dictionaries containing GC values.Josh Matthews2017-09-251-4/+15
| |
| * Store rootable dictionary members of dictionaries in RootedTraceableBox.Josh Matthews2017-09-251-8/+19
| |
| * Be more conservative about safety of dictionary and union values.Josh Matthews2017-09-251-8/+35
| | | | | | | | | | | | | | | | Mark dictionaries containing GC values as must_root, and wrap them in RootedTraceableBox in automatically-generated APIs. To accommodate union variants that are now flagged as unsafe, add RootedTraceableBox to union variants that need to be rooted, rather than wrapping the entire union value.
| * Don't generate union conversion functions for object variants.Josh Matthews2017-09-251-2/+6
| |
| * Rename a couple of Promise methodsAnthony Ramine2017-09-211-1/+1
| |
| * script: Properly implement LegacyPlatformGetOwnProperty in WebIDL.Emilio Cobos Álvarez2017-09-181-9/+24
| | | | | | | | | | We were missing the "ignoreNamedProperties" bit, which my previous patch uncovers.
| * script: remove unused function.Emilio Cobos Álvarez2017-09-181-1/+0
| |
| * script: Fix integer-JSID handling in named getters.Emilio Cobos Álvarez2017-09-181-6/+8
| | | | | | | | Fixes #10686
| * script: Fix code generation for named getters.Emilio Cobos Álvarez2017-09-171-3/+1
| | | | | | | | Fixes part of #18535
| * Fix compartment mismatch issueConnor Brewster2017-08-091-1/+6
| |
| * Generate DOM bindings imports for webidl typedefsFernando Jiménez Moreno2017-08-021-6/+15
| |
| * Implement CEReactions codegenConnor Brewster2017-07-181-2/+11
| |
| * Implement HTMLConstructorConnor Brewster2017-06-151-6/+78
| |
| * Generate GetConstructorObject for all interfacesConnor Brewster2017-06-131-1/+1
| |
| * Update the WebIDL parserAnthony Ramine2017-06-091-80/+95
| |
| * Renamed BrowsingContext to WindowProxy in script.Alan Jeffrey2017-05-121-1/+1
| |
* | changed to use globalscope originddh2017-04-261-1/+3
|/
* 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
| | |