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

Issue 23513066: Pass isolate to ScriptPromise and ScriptString constructors (Closed)

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

Description

Pass isolate to ScriptPromise and ScriptString constructors Pass isolate to ScriptPromise and ScriptString constructors to avoid calls to v8::Isolate::GetCurrent(). Also add an m_isolate member to ScriptValue to avoid avoid calls to v8::Isolate::GetCurrent() and simplify the API. R=haraken BUG=263412 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157950

Patch Set 1 #

Patch Set 2 : Add m_isolate member to ScriptValue #

Total comments: 10

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -26 lines) Patch
M Source/bindings/v8/ScriptPromise.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptString.h View 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/v8/ScriptString.cpp View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M Source/bindings/v8/ScriptValue.h View 1 2 3 chunks +22 lines, -9 lines 0 comments Download
M Source/bindings/v8/ScriptValue.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/ScriptArguments.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-17 19:52:15 UTC) #1
haraken
LGTM with comments. https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h File Source/bindings/v8/ScriptValue.h (right): https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h#newcode61 Source/bindings/v8/ScriptValue.h:61: : m_isolate(0) Is there any reason ...
7 years, 3 months ago (2013-09-18 00:25:12 UTC) #2
do-not-use
https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h File Source/bindings/v8/ScriptValue.h (right): https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h#newcode61 Source/bindings/v8/ScriptValue.h:61: : m_isolate(0) On 2013/09/18 00:25:12, haraken wrote: > > ...
7 years, 3 months ago (2013-09-18 06:35:15 UTC) #3
haraken
https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h File Source/bindings/v8/ScriptValue.h (right): https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h#newcode61 Source/bindings/v8/ScriptValue.h:61: : m_isolate(0) On 2013/09/18 06:35:15, Christophe Dumez wrote: > ...
7 years, 3 months ago (2013-09-18 07:02:15 UTC) #4
do-not-use
https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h File Source/bindings/v8/ScriptValue.h (right): https://codereview.chromium.org/23513066/diff/4001/Source/bindings/v8/ScriptValue.h#newcode78 Source/bindings/v8/ScriptValue.h:78: v8::Isolate* isolate() const { return m_isolate; } On 2013/09/18 ...
7 years, 3 months ago (2013-09-18 07:18:46 UTC) #5
haraken
Still LGTM
7 years, 3 months ago (2013-09-18 07:26:50 UTC) #6
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/23513066/12001
7 years, 3 months ago (2013-09-18 07:28:55 UTC) #7
commit-bot: I haz the power
Change committed as 157950
7 years, 3 months ago (2013-09-18 09:52:12 UTC) #8
marja
dcarney@, iirc you said at some point "we shouldn't add m_isolate to ScriptValue"; this (committed) ...
7 years, 3 months ago (2013-09-18 12:39:04 UTC) #9
dcarney
7 years, 3 months ago (2013-09-18 19:12:20 UTC) #10
Message was sent while issue was closed.
On 2013/09/18 12:39:04, marja wrote:
> dcarney@, iirc you said at some point "we shouldn't add m_isolate to
> ScriptValue"; this (committed) CL does it... (Do I remember right?)

Yeah, but that was before the Isolate::GetCurrent deprecation kick we're in now.
 At the moment, we don't have another way around this.

Powered by Google App Engine
This is Rietveld 408576698