On 7/23/13 6:34 PM, Josh Matthews wrote:
Accordingly, there are now branches of servo, rust-mozjs,
and mozjs (all named 'inline') that contain my work to date on storing
DOM objects inline in their JS wrappers' fixed slots. There are some
rooting problems that make it crash once in a while, but otherwise
test_bindings.html runs to completion on a regular basis.

How does the resulting rust-side code look? Is is sufficiently like idiomatic rust?

Basically, would like to avoid us just pushing the complexity of implementing a DOM object from CC boilerplate to access-to-members boilerplate...

Thing to note:
* Each Option<AbstractNode<ScriptView>> is 16 bytes, so just the base
Node is already way over the inline storage limit, leading to the
NodeOutOfLine structure in src/script/dom/node.rs.

Hm. What are we storing inline, then? From the diff it looks like basic stuff like parent and owner document and prevsibling is out of line... What's our inline storage limit?

-Boris
_______________________________________________
dev-servo mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to