Summary: | [V8] Make an Isolate parameter mandatory in SerializedScriptValue::deserialize() | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kentaro Hara <haraken> | ||||||
Component: | WebCore JavaScript | Assignee: | Kentaro Hara <haraken> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, japhet, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Kentaro Hara
2013-01-15 09:34:33 PST
Created attachment 182792 [details]
Patch
Comment on attachment 182792 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=182792&action=review > Source/WebCore/bindings/v8/SerializedScriptValue.h:88 > + ScriptValue deserializeForInspector(ScriptState*); > + ScriptValue deserializeForInspector(ScriptState*, v8::Isolate*); We should put the Isolate into ScriptState instead of passing them separately. Everyone who takes a ScriptState is going to need an isolate. Created attachment 182925 [details]
patch for landing
(In reply to comment #2) > We should put the Isolate into ScriptState instead of passing them separately. Everyone who takes a ScriptState is going to need an isolate. Done. Thanks! We might want to implement v8::Context::GetIsolate(). At entry points from WebCore, we have a Frame or a ScriptExecutionContext, which can be converted to a v8::Context. So once v8::Context::GetIsolate() is exposed, we can get an Isolate without calling v8::Isolate::GetCurrent(). I'm implementing v8::Context::GetIsolate(). (In reply to comment #5) > I'm implementing v8::Context::GetIsolate(). The V8 patch is here: https://chromiumcodereview.appspot.com/11968011/ Comment on attachment 182925 [details] patch for landing Clearing flags on attachment: 182925 Committed r139854: <http://trac.webkit.org/changeset/139854> All reviewed patches have been landed. Closing bug. |