I took the shortest route for prototyping right now and added really
basic APIs that did what I needed for our local embedding of
Spidermonkey. 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.
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.
See
https://github.com/mozilla/servo/commit/5370fc15acbe5d3407d5a97599f6b2fdb780714b
for the juicy stuff.
Cheers,
Josh
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo