Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 23876015: Pass isolate to v8::Local<>::New() factory function (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin
Visibility:
Public.

Description

Pass isolate to v8::Local<>::New() factory function Pass isolate to v8::Local<>::New() factory function to avoid implicit calls to v8::Isolate::GetCurrent(). R=haraken BUG=263412 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157774

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use isolateForScriptExecutionContext() #

Patch Set 3 : Use isolateForFrame() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -22 lines) Patch
M Source/bindings/v8/ScriptController.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/SerializedScriptValue.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M Source/bindings/v8/V8AbstractEventListener.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8Callback.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8DOMWrapper.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 2 4 chunks +5 lines, -5 lines 1 comment Download

Messages

Total messages: 15 (0 generated)
do-not-use
Adding abarth for Source/web
7 years, 3 months ago (2013-09-12 07:05:12 UTC) #1
marja
drive-by, lg except these 2 https://codereview.chromium.org/23876015/diff/1/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp File Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp (right): https://codereview.chromium.org/23876015/diff/1/Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp#newcode117 Source/bindings/v8/V8WorkerGlobalScopeEventListener.cpp:117: v8::Isolate* isolate = toV8Context(context, ...
7 years, 3 months ago (2013-09-12 07:41:20 UTC) #2
haraken
On 2013/09/12 07:41:20, marja wrote: > https://codereview.chromium.org/23876015/diff/1/Source/web/WebFrameImpl.cpp#newcode860 > Source/web/WebFrameImpl.cpp:860: v8Results[i] = > v8::Local<v8::Value>::New(frame()->script()->currentWorldContext()->GetIsolate(), > scriptResults[i].v8Value()); ...
7 years, 3 months ago (2013-09-12 09:10:36 UTC) #3
marja
pfeldman pointed out that Blink coding style forbids the "get" prefix. So the functions are ...
7 years, 3 months ago (2013-09-12 09:12:09 UTC) #4
haraken
On 2013/09/12 09:12:09, marja wrote: > pfeldman pointed out that Blink coding style forbids the ...
7 years, 3 months ago (2013-09-12 09:21:32 UTC) #5
do-not-use
Ok, I will clean up the patch once Marja's CL lands: https://codereview.chromium.org/24119002/
7 years, 3 months ago (2013-09-12 10:16:04 UTC) #6
do-not-use
https://codereview.chromium.org/23876015/diff/1/Source/web/WebFrameImpl.cpp File Source/web/WebFrameImpl.cpp (right): https://codereview.chromium.org/23876015/diff/1/Source/web/WebFrameImpl.cpp#newcode860 Source/web/WebFrameImpl.cpp:860: v8Results[i] = v8::Local<v8::Value>::New(frame()->script()->currentWorldContext()->GetIsolate(), scriptResults[i].v8Value()); On 2013/09/12 07:41:21, marja wrote: ...
7 years, 3 months ago (2013-09-12 12:07:31 UTC) #7
marja
Afaics, they should return the same isolate.
7 years, 3 months ago (2013-09-12 12:27:57 UTC) #8
do-not-use
I updated the patch to use isolateForScriptExecutionContext() / isolateForFrame(). PTAL.
7 years, 3 months ago (2013-09-12 12:55:43 UTC) #9
marja
lgtm
7 years, 3 months ago (2013-09-12 12:58:13 UTC) #10
do-not-use
abarth@, could you please take a look for Source/web ?
7 years, 3 months ago (2013-09-13 16:01:55 UTC) #11
abarth-chromium
lgtm https://codereview.chromium.org/23876015/diff/17001/Source/web/WebFrameImpl.cpp File Source/web/WebFrameImpl.cpp (right): https://codereview.chromium.org/23876015/diff/17001/Source/web/WebFrameImpl.cpp#newcode882 Source/web/WebFrameImpl.cpp:882: return toV8(DOMFileSystem::create(frame()->document(), name, static_cast<WebCore::FileSystemType>(type), KURL(ParsedURLString, path.utf8().data())), v8::Handle<v8::Object>(), isolateForFrame(frame())); ...
7 years, 3 months ago (2013-09-13 17:47:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23876015/17001
7 years, 3 months ago (2013-09-13 17:47:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23876015/17001
7 years, 3 months ago (2013-09-13 18:23:30 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-13 19:38:22 UTC) #15
Message was sent while issue was closed.
Change committed as 157774

Powered by Google App Engine
This is Rietveld 408576698