[Webkit-unassigned] [Bug 162544] [Binding] Introducing DOM binding JIT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 26 00:18:59 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=162544

--- Comment #1 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Currently I'm planning to introduce binding JIT for DOM accessors first.
In particular, first, I'm planning to implement firstChild etc. (DOM traversal) operations by hand. And later, generalizing them and producing framework to handle DOM accessors.

Why I would like to focus on DOM accessors first is,

1. DOM accessors are typically tiny.

Some DOM accessors are very tiny operations. For example, firstChild just looks up the member field of Node* (Of course, it also has type checking of `this`).
As a result, large part of operation is occupied by DOM binding code.
If DOM operation itself is heavy, DOM binding does not occupy large part of it, and benefit of DOM binding JIT becomes small.

2. We can implement whole the DOM binding logic in JIT

If a DOM operation is complex, while we can implement DOM binding code in JIT, in the middle of JIT code, we still need to call C runtime function to invoke an actual operation. This limits the benefit of DOM binding JIT.

If we can implement whole the logic in JIT code, we can inline DOM operations. And DOM accessors are good example we can easily implement it in JIT.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160926/407c9743/attachment.html>


More information about the webkit-unassigned mailing list