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

Issue 1003043002: bindings: Use Maybe APIs in V8ScriptRunner (part 1) (Closed)

Created:
5 years, 9 months ago by bashi
Modified:
5 years, 9 months ago
Reviewers:
haraken, dcarney, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

bindings: Use Maybe APIs in V8ScriptRunner (part 1) Replacing deprecating Compile() and Run() APIs. BUG=462402 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192226

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : #

Total comments: 19

Patch Set 11 : #

Patch Set 12 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -87 lines) Patch
M Source/bindings/core/v8/NPV8Object.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -4 lines 0 comments Download
M Source/bindings/core/v8/ScriptController.cpp View 1 2 3 4 7 8 9 1 chunk +5 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/ScriptDebugServer.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +10 lines, -9 lines 0 comments Download
M Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +10 lines, -10 lines 0 comments Download
M Source/bindings/core/v8/V8BindingMacros.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/V8LazyEventListener.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +39 lines, -34 lines 1 comment Download
M Source/bindings/core/v8/WorkerScriptController.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +25 lines, -12 lines 0 comments Download
M Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
bashi
PTAL?
5 years, 9 months ago (2015-03-13 02:55:25 UTC) #2
haraken
https://codereview.chromium.org/1003043002/diff/1/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/1003043002/diff/1/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode65 Source/bindings/core/v8/PrivateScriptRunner.cpp:65: if (block.HasCaught()) Just to confirm: When a worker termination ...
5 years, 9 months ago (2015-03-13 04:31:16 UTC) #3
haraken
Overall I might want to clarify the following two points before proceeding with the work: ...
5 years, 9 months ago (2015-03-13 04:34:28 UTC) #4
Yuki
https://codereview.chromium.org/1003043002/diff/1/Source/bindings/core/v8/ScriptStreamerTest.cpp File Source/bindings/core/v8/ScriptStreamerTest.cpp (right): https://codereview.chromium.org/1003043002/diff/1/Source/bindings/core/v8/ScriptStreamerTest.cpp#newcode165 Source/bindings/core/v8/ScriptStreamerTest.cpp:165: v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(sourceCode, isolate()).ToLocalChecked(); optional: Reading v8.h: V8_INLINE ...
5 years, 9 months ago (2015-03-13 04:39:41 UTC) #5
bashi
> a) if there is a way to avoid MaybeLocal in the Blink code base. ...
5 years, 9 months ago (2015-03-13 05:15:20 UTC) #6
bashi
@dcarney, > check HadException() when V8 APIs fails. (I think ToLocal() never succeed when > ...
5 years, 9 months ago (2015-03-13 05:38:12 UTC) #7
Yuki
lgtm
5 years, 9 months ago (2015-03-13 08:06:44 UTC) #8
dcarney
On 2015/03/13 05:38:12, bashi1 wrote: > @dcarney, > > > check HadException() when V8 APIs ...
5 years, 9 months ago (2015-03-13 08:14:35 UTC) #9
dcarney
On 2015/03/13 04:34:28, haraken wrote: > Overall I might want to clarify the following two ...
5 years, 9 months ago (2015-03-13 08:15:32 UTC) #10
dcarney
https://codereview.chromium.org/1003043002/diff/40001/Source/bindings/core/v8/NPV8Object.cpp File Source/bindings/core/v8/NPV8Object.cpp (right): https://codereview.chromium.org/1003043002/diff/40001/Source/bindings/core/v8/NPV8Object.cpp#newcode559 Source/bindings/core/v8/NPV8Object.cpp:559: if (!V8ScriptRunner::compileAndRunInternalScript(source, isolate).ToLocal(&result)) use macros to remove the if(!whatever) ...
5 years, 9 months ago (2015-03-13 08:15:46 UTC) #12
bashi
On 2015/03/13 08:14:35, dcarney wrote: > On 2015/03/13 05:38:12, bashi1 wrote: > > @dcarney, > ...
5 years, 9 months ago (2015-03-13 08:33:32 UTC) #13
dcarney
> Thanks! I'll address your comments later. In summary: > - ToLocal() succeeds -> no ...
5 years, 9 months ago (2015-03-13 08:39:09 UTC) #14
bashi
On 2015/03/13 08:39:09, dcarney wrote: > > Thanks! I'll address your comments later. In summary: ...
5 years, 9 months ago (2015-03-13 08:42:20 UTC) #15
bashi
Could you take another look? https://codereview.chromium.org/1003043002/diff/40001/Source/bindings/core/v8/NPV8Object.cpp File Source/bindings/core/v8/NPV8Object.cpp (right): https://codereview.chromium.org/1003043002/diff/40001/Source/bindings/core/v8/NPV8Object.cpp#newcode559 Source/bindings/core/v8/NPV8Object.cpp:559: if (!V8ScriptRunner::compileAndRunInternalScript(source, isolate).ToLocal(&result)) On ...
5 years, 9 months ago (2015-03-17 02:01:36 UTC) #16
haraken
Just to confirm: In the near future, tryCatch.HasCaught() is going to be true if and ...
5 years, 9 months ago (2015-03-17 02:11:01 UTC) #17
bashi
On 2015/03/17 02:11:01, haraken wrote: > Just to confirm: In the near future, tryCatch.HasCaught() is ...
5 years, 9 months ago (2015-03-17 02:20:51 UTC) #18
dcarney
On 2015/03/17 02:01:36, bashi1 wrote: > Could you take another look? > > https://codereview.chromium.org/1003043002/diff/40001/Source/bindings/core/v8/NPV8Object.cpp > ...
5 years, 9 months ago (2015-03-17 06:29:14 UTC) #19
haraken
On 2015/03/17 02:11:01, haraken wrote: > Just to confirm: In the near future, tryCatch.HasCaught() is ...
5 years, 9 months ago (2015-03-17 08:17:09 UTC) #20
dcarney
On 2015/03/17 08:17:09, haraken wrote: > On 2015/03/17 02:11:01, haraken wrote: > > Just to ...
5 years, 9 months ago (2015-03-17 08:17:39 UTC) #21
bashi
On 2015/03/17 06:29:14, dcarney wrote: > On 2015/03/17 02:01:36, bashi1 wrote: > > Could you ...
5 years, 9 months ago (2015-03-18 00:09:00 UTC) #22
haraken
https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/ScriptDebugServer.cpp File Source/bindings/core/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/ScriptDebugServer.cpp#newcode617 Source/bindings/core/v8/ScriptDebugServer.cpp:617: v8::Local<v8::Value> value = V8ScriptRunner::compileAndRunInternalScript(source, m_isolate).ToLocalChecked(); Wouldn't it be better ...
5 years, 9 months ago (2015-03-18 01:58:51 UTC) #23
bashi
Thank you for review! https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/ScriptDebugServer.cpp File Source/bindings/core/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/ScriptDebugServer.cpp#newcode617 Source/bindings/core/v8/ScriptDebugServer.cpp:617: v8::Local<v8::Value> value = V8ScriptRunner::compileAndRunInternalScript(source, m_isolate).ToLocalChecked(); ...
5 years, 9 months ago (2015-03-18 02:33:12 UTC) #24
haraken
https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp File Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp (right): https://codereview.chromium.org/1003043002/diff/180001/Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp#newcode410 Source/bindings/core/v8/custom/V8InjectedScriptHostCustom.cpp:410: if (!tryCatch.CanContinue()) On 2015/03/18 02:33:12, bashi1 wrote: > On ...
5 years, 9 months ago (2015-03-18 08:27:37 UTC) #25
bashi
Revised the CL. Could you take another look? As chatted offline, I'd like to make ...
5 years, 9 months ago (2015-03-20 01:16:07 UTC) #29
haraken
LGTM https://codereview.chromium.org/1003043002/diff/280001/Source/bindings/core/v8/V8ScriptRunner.cpp File Source/bindings/core/v8/V8ScriptRunner.cpp (right): https://codereview.chromium.org/1003043002/diff/280001/Source/bindings/core/v8/V8ScriptRunner.cpp#newcode429 Source/bindings/core/v8/V8ScriptRunner.cpp:429: throwScriptForbiddenException(isolate); Just to confirm: If we forget to ...
5 years, 9 months ago (2015-03-20 01:38:56 UTC) #30
bashi
On 2015/03/20 01:38:56, haraken wrote: > LGTM > > https://codereview.chromium.org/1003043002/diff/280001/Source/bindings/core/v8/V8ScriptRunner.cpp > File Source/bindings/core/v8/V8ScriptRunner.cpp (right): > ...
5 years, 9 months ago (2015-03-20 02:29:32 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003043002/280001
5 years, 9 months ago (2015-03-20 02:30:23 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 05:26:29 UTC) #35
Message was sent while issue was closed.
Committed patchset #12 (id:280001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192226

Powered by Google App Engine
This is Rietveld 408576698