[Webkit-unassigned] [Bug 33201] [V8] Move createWindow into generic bindings so it can be shared with JSC

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 5 10:27:12 PST 2010


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





--- Comment #4 from Adam Barth <abarth at webkit.org>  2010-01-05 10:27:12 PST ---
> I am assuming State<Binding> -> ScriptState? Or is this going to be a more
> generic concept?

The Script* types are WebCore's view of the bindings.  The templated objects
are the generic bindings view of the engine-specific bindings.  I want to see
how far I can push things, but eventually we might hope that the templated
objects are a relatively thin layer around the JavaScript engine itself.

To specifically answer your question, State<Binding> is ExecState for JSC and
nothing for V8 (because V8 uses statics instead of a state object).

Another way to think about this is to look at ScriptValue and Bindings::Value. 
ScriptValue uses a persistent handle with a managed lifetime, which is how
WebCore wants to think about the bindings, but that's slow and memory
intensive.  Bindings::Value is just a regular value handle, which means zero
overhead.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list