RESOLVED FIXED 164006
[DOMJIT][CSSJIT] Share code with DOMJIT
https://bugs.webkit.org/show_bug.cgi?id=164006
Summary [DOMJIT][CSSJIT] Share code with DOMJIT
Yusuke Suzuki
Reported 2016-10-25 23:47:21 PDT
This should be nice!
Attachments
Patch (8.18 KB, patch)
2016-10-27 12:29 PDT, Yusuke Suzuki
mark.lam: review+
Yusuke Suzuki
Comment 1 2016-10-25 23:48:45 PDT
For example, CSS JIT selector compiler has getDocument function. This is super useful for Node.ownerDocument implementation in DOMJIT. In the mean time, in Node.ownerDocument side, we just reimplement it. But eventually, we should change CSSJIT's Assembler use to CCallHelpers and share the helper functions with DOMJIT.
Yusuke Suzuki
Comment 2 2016-10-26 02:43:48 PDT
CCallHelper is tightly coupled with JS JIT. So using MacroAssembler for CSSJIT is ok. We will extract some methods into DOMJIT namespace to share it with CSSJIT. I think putting to DOMJIT is ok since these helper methods are related to DOM.
Yusuke Suzuki
Comment 3 2016-10-27 12:29:05 PDT
Mark Lam
Comment 4 2016-10-27 12:48:14 PDT
Comment on attachment 293042 [details] Patch r=me
Yusuke Suzuki
Comment 5 2016-10-27 13:03:31 PDT
Note You need to log in before you can comment on or make changes to this bug.