This should be nice!
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.
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.
Created attachment 293042 [details]
Comment on attachment 293042 [details]
Committed r207999: <http://trac.webkit.org/changeset/207999>