Can anybody point me to code that gets run when accessing a property on a DOM node in OSS rendering engines?
And whether the property is annotated as "cached" in which case the JIT can read the cache directly without doing a vmcall.
-
-
Given opportunity to store truth in user JS and read from that instead of DOM, would you? Eg, option.selected.
-
option.selected is a bad example because it depends very non-locally on other options, no?
- 6 more replies
New conversation -
-
-
But assuming a vmcall happens and type inference works, you jump to something like https://dxr.mozilla.org/mozilla-central/search?q=function%3Amozilla%3A%3Adom%3A%3ANodeBinding%3A%3Aget_firstChild … direct from jitcode
-
But note that there is also some jitcode overhead for the vmcall, etc.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.