Repository navigation
unblock using JS_GC_ZEAL - #8226
Conversation
|
-S-awaiting-review +S-needs-code-changes Reviewed 1 of 1 files at r1, 2 of 2 files at r2. components/script/dom/bindings/codegen/CodegenRust.py, line 2168 [r1] (raw file): components/script/dom/bindings/codegen/CodegenRust.py, line 2180 [r1] (raw file): components/script/dom/bindings/utils.rs, line 10 [r2] (raw file): components/script/dom/bindings/utils.rs, line 629 [r2] (raw file): Comments from the review on Reviewable.io |
I didn't see much benefit to templating the function over T when we didn't really use T for anything. Do you prefer the templating for consistency with the Gecko implementation, or are there deeper issues here? |
|
There's no deeper issue, it's just slightly more type-safe than accepting a |
We're going to wind up tacking on different pieces of code for the global vs. non-global case once we move the JS_SetReservedSlot call into create_dom_global. We might as well separate the indentation changes into a separate commit.
OK, thanks. I went with that option. |
|
-S-awaiting-review +S-needs-code-changes Reviewed 2 of 2 files at r3. Comments from the review on Reviewable.io |
Moving this slot setting prior to initializing standard classes and other initialization tasks means that we can effectively use JS_GC_ZEAL. Fixes servo#6057.
|
@bors-servo r+ |
|
📌 Commit c82b6ce has been approved by |
unblock using JS_GC_ZEAL I think these patches move the `JS_SetReservedSlot` call to the right place for #6057. I'm not sure that the interface to `create_dom_global` is the best; passing a `JSVal` or a `*libc::c_void` seemed about equal, so I'd welcome feedback there. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8226) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
unblock using JS_GC_ZEAL I think these patches move the `JS_SetReservedSlot` call to the right place for #6057. I'm not sure that the interface to `create_dom_global` is the best; passing a `JSVal` or a `*libc::c_void` seemed about equal, so I'd welcome feedback there. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8226) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
@bors-servo: retry
|
|
⚡ Previous build results for android, gonk, linux-dev, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel... |
|
💔 Test failed - linux-rel |
|
@bors-servo: retry
|
|
⚡ Previous build results for android, gonk, linux-dev, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel... |
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
I think these patches move the
JS_SetReservedSlotcall to the right place for #6057. I'm not sure that the interface tocreate_dom_globalis the best; passing aJSValor a*libc::c_voidseemed about equal, so I'd welcome feedback there.