RESOLVED FIXED 33201
[V8] Move createWindow into generic bindings so it can be shared with JSC
https://bugs.webkit.org/show_bug.cgi?id=33201
Summary [V8] Move createWindow into generic bindings so it can be shared with JSC
Adam Barth
Reported 2010-01-05 01:12:27 PST
[V8] Move createWindow into generic bindings so it can be shared with JSC
Attachments
Patch (55.34 KB, patch)
2010-01-05 01:16 PST, Adam Barth
no flags
Patch (30.78 KB, patch)
2010-08-08 23:33 PDT, Dominic Cooney
no flags
Adam Barth
Comment 1 2010-01-05 01:16:32 PST
WebKit Review Bot
Comment 2 2010-01-05 01:17:24 PST
style-queue ran check-webkit-style on attachment 45872 [details] without any errors.
Dimitri Glazkov (Google)
Comment 3 2010-01-05 09:07:49 PST
Comment on attachment 45872 [details] Patch ok. I am learning about this generic binding from this patch -- it looks pretty interesting. I am assuming this is very much in flux still, so I'll follow along. I am assuming State<Binding> -> ScriptState? Or is this going to be a more generic concept?
Adam Barth
Comment 4 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.
Adam Barth
Comment 5 2010-01-05 11:03:39 PST
Comment on attachment 45872 [details] Patch Clearing flags on attachment: 45872 Committed r52810: <http://trac.webkit.org/changeset/52810>
Adam Barth
Comment 6 2010-01-05 11:03:47 PST
All reviewed patches have been landed. Closing bug.
Dominic Cooney
Comment 7 2010-08-08 23:33:48 PDT
Dominic Cooney
Comment 8 2010-08-08 23:35:09 PDT
Comment on attachment 63860 [details] Patch Commit message confused webkit-patch.
Note You need to log in before you can comment on or make changes to this bug.