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

Issue 273683006: ScriptPromise should understand the ScriptState from which the ScriptPromise is generated (Closed)

Created:
6 years, 7 months ago by haraken
Modified:
6 years, 7 months ago
CC:
blink-reviews, jsbell+serviceworker_chromium.org, serviceworker-reviews, arv+blink, tzik, blink-reviews-css, horo+watch_chromium.org, ed+blinkwatch_opera.com, nhiroki, abarth-chromium, kinuko, falken, dglazkov+blink, blink-reviews-bindings_chromium.org, Inactive, darktears, apavlov+blink_chromium.org, rwlbuis, watchdog-blink-watchlist_google.com, alecflett+watch_chromium.org, rune+blink
Visibility:
Public.

Description

ScriptPromise should understand the ScriptState from which the ScriptPromise is generated I'm making ScriptValue understand the ScriptState from which the ScriptValue is created. For that goal, this CL makes ScriptPromise understand the ScriptState from which the ScriptPromise is created. For that goal, this CL passes around ScriptState in a lot of places. BUG=357144 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173743

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -192 lines) Patch
M Source/bindings/scripts/v8_types.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptPromise.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/v8/ScriptPromise.cpp View 5 chunks +12 lines, -11 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.h View 1 2 3 4 5 5 chunks +16 lines, -17 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.cpp View 1 2 3 chunks +18 lines, -37 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverWithContext.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/v8/ScriptPromiseTest.cpp View 4 chunks +8 lines, -12 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/css/FontFaceSet.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 4 chunks +8 lines, -8 lines 0 comments Download
M Source/core/css/FontFaceSet.idl View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/testing/Internals.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.h View 1 chunk +14 lines, -14 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 6 chunks +29 lines, -29 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.idl View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/modules/imagebitmap/WindowImageBitmapFactories.idl View 1 chunk +8 lines, -8 lines 0 comments Download
M Source/modules/quota/StorageQuota.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/quota/StorageQuota.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M Source/modules/quota/StorageQuota.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/Cache.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/Cache.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/serviceworkers/Cache.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/serviceworkers/InstallEvent.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/serviceworkers/InstallEvent.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/serviceworkers/InstallEvent.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webmidi/NavigatorWebMIDI.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webmidi/NavigatorWebMIDI.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/modules/webmidi/NavigatorWebMIDI.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
haraken
yhirano@: This CL is making non-trivial changes to Promise implementation. Would you mind taking a ...
6 years, 7 months ago (2014-05-08 14:08:41 UTC) #1
yhirano
One question: ScriptPromise::m_scriptState should be removed when ScriptValue has its own ScriptState, is that right? ...
6 years, 7 months ago (2014-05-09 06:24:56 UTC) #2
haraken
Thanks for review! PTAL. > One question: ScriptPromise::m_scriptState should be removed when ScriptValue > has ...
6 years, 7 months ago (2014-05-09 07:37:24 UTC) #3
yhirano
https://codereview.chromium.org/273683006/diff/20001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/273683006/diff/20001/Source/bindings/v8/ScriptPromiseResolver.h#newcode149 Source/bindings/v8/ScriptPromiseResolver.h:149: return ToV8Value<ScriptPromiseResolver, v8::Isolate*>::toV8Value(value, m_scriptState->isolate(), m_scriptState->isolate()); On 2014/05/09 07:37:25, haraken ...
6 years, 7 months ago (2014-05-09 07:58:36 UTC) #4
haraken
https://codereview.chromium.org/273683006/diff/20001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/273683006/diff/20001/Source/bindings/v8/ScriptPromiseResolver.h#newcode149 Source/bindings/v8/ScriptPromiseResolver.h:149: return ToV8Value<ScriptPromiseResolver, v8::Isolate*>::toV8Value(value, m_scriptState->isolate(), m_scriptState->isolate()); On 2014/05/09 07:58:37, yhirano ...
6 years, 7 months ago (2014-05-09 08:42:00 UTC) #5
yhirano
lgtm https://codereview.chromium.org/273683006/diff/80001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/273683006/diff/80001/Source/bindings/v8/ScriptPromiseResolver.h#newcode133 Source/bindings/v8/ScriptPromiseResolver.h:133: // Used by ToV8Value<ScriptPromiseResolver, v8::Isolate*>. Can you fix ...
6 years, 7 months ago (2014-05-09 08:58:01 UTC) #6
haraken
Thanks for review! https://codereview.chromium.org/273683006/diff/80001/Source/bindings/v8/ScriptPromiseResolver.h File Source/bindings/v8/ScriptPromiseResolver.h (right): https://codereview.chromium.org/273683006/diff/80001/Source/bindings/v8/ScriptPromiseResolver.h#newcode133 Source/bindings/v8/ScriptPromiseResolver.h:133: // Used by ToV8Value<ScriptPromiseResolver, v8::Isolate*>. On ...
6 years, 7 months ago (2014-05-09 08:59:29 UTC) #7
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 7 months ago (2014-05-09 08:59:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/273683006/100001
6 years, 7 months ago (2014-05-09 09:01:15 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 10:17:33 UTC) #10
Message was sent while issue was closed.
Change committed as 173743

Powered by Google App Engine
This is Rietveld 408576698