Bug 85329 - [V8] Add an Isolate parameter to setJSWrapperForXXX()
Summary: [V8] Add an Isolate parameter to setJSWrapperForXXX()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 84074
  Show dependency treegraph
 
Reported: 2012-05-01 17:44 PDT by Kentaro Hara
Modified: 2012-05-01 23:06 PDT (History)
5 users (show)

See Also:


Attachments
Patch (19.48 KB, patch)
2012-05-01 17:48 PDT, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-05-01 17:44:02 PDT
The objective is to pass Isolate around in V8 bindings. In this bug we add an Isolate parameter to setJSWrapperForXXX() and pass Isolate in CodeGeneratorV8.pm. I'll pass Isolate in custom bindings in a follow-up patch.
Comment 1 Kentaro Hara 2012-05-01 17:48:35 PDT
Created attachment 139718 [details]
Patch
Comment 2 Adam Barth 2012-05-01 22:34:56 PDT
Comment on attachment 139718 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=139718&action=review

> Source/WebCore/bindings/v8/V8DOMWrapper.h:158
> -    void V8DOMWrapper::setJSWrapperForDOMObject(PassRefPtr<T> object, v8::Persistent<v8::Object> wrapper)
> +    void V8DOMWrapper::setJSWrapperForDOMObject(PassRefPtr<T> object, v8::Persistent<v8::Object> wrapper, v8::Isolate* isolate)

If I were writing these patches, I probably would have made v8::Isolate the first argument to mirror ExecState in JSC, but that probably doesn't play nicely with having the isolate be optional.
Comment 3 Kentaro Hara 2012-05-01 22:36:38 PDT
(In reply to comment #2)
> If I were writing these patches, I probably would have made v8::Isolate the first argument to mirror ExecState in JSC, but that probably doesn't play nicely with having the isolate be optional.

Yeah, we put the Isolate in the last argument to make it optional.
Comment 4 WebKit Review Bot 2012-05-01 23:06:19 PDT
Comment on attachment 139718 [details]
Patch

Clearing flags on attachment: 139718

Committed r115797: <http://trac.webkit.org/changeset/115797>
Comment 5 WebKit Review Bot 2012-05-01 23:06:23 PDT
All reviewed patches have been landed.  Closing bug.