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

Issue 23254004: Implement ScriptPromise and ScriptFunction (Closed)

Created:
7 years, 4 months ago by abarth-chromium
Modified:
6 years, 11 months ago
Reviewers:
alecflett
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, do-not-use, kinuko
Visibility:
Public.

Description

Implement ScriptPromise and ScriptFunction These two classes allow C++ code to hook into a Promise's resolution chain. Documentation provided in ScriptPromise.h

Patch Set 1 #

Patch Set 2 : Control shouldn't reach the end of a non-void function #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -78 lines) Patch
A + LayoutTests/fast/js/Promise-native-then.html View 1 chunk +7 lines, -6 lines 0 comments Download
A + LayoutTests/fast/js/Promise-native-then-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/bindings.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A + Source/bindings/v8/GarbageCollected.h View 1 1 chunk +36 lines, -27 lines 0 comments Download
M Source/bindings/v8/ScopedPersistent.h View 2 chunks +7 lines, -0 lines 0 comments Download
A + Source/bindings/v8/ScriptFunction.h View 1 1 chunk +23 lines, -25 lines 0 comments Download
A + Source/bindings/v8/ScriptPromise.h View 1 chunk +27 lines, -19 lines 0 comments Download
M Source/core/testing/Internals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 2 chunks +33 lines, -0 lines 1 comment Download
M Source/core/testing/Internals.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
abarth-chromium
7 years, 4 months ago (2013-08-19 21:59:23 UTC) #1
abarth-chromium
https://codereview.chromium.org/23254004/diff/3001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/23254004/diff/3001/Source/core/testing/Internals.cpp#newcode2165 Source/core/testing/Internals.cpp:2165: return function->releaseToV8Function(); I'm not 100% happy with this line. ...
7 years, 4 months ago (2013-08-19 22:03:18 UTC) #2
alecflett
this looks fine to me - agreed on the adoptByGarbageCollector() or something adopt-like. It doesn't ...
7 years, 4 months ago (2013-08-20 17:40:42 UTC) #3
alecflett
On 2013/08/20 17:40:42, alecflett wrote: > this looks fine to me - agreed on the ...
7 years, 3 months ago (2013-08-26 23:14:50 UTC) #4
abarth-chromium
We're just missing a review. Do you feel comfortable reviewing it, or should I find ...
7 years, 3 months ago (2013-08-27 23:07:40 UTC) #5
alecflett
On 2013/08/27 23:07:40, abarth wrote: > We're just missing a review. Do you feel comfortable ...
7 years, 3 months ago (2013-08-27 23:45:10 UTC) #6
alecflett
On 2013/08/27 23:45:10, alecflett wrote: > On 2013/08/27 23:07:40, abarth wrote: > > We're just ...
7 years, 3 months ago (2013-09-09 18:31:44 UTC) #7
alecflett
On 2013/09/09 18:31:44, alecflett wrote: > On 2013/08/27 23:45:10, alecflett wrote: > > On 2013/08/27 ...
7 years, 3 months ago (2013-09-16 19:03:53 UTC) #8
abarth-chromium
These are good questions for Marja. I see that she's pushing isolate parameters further up ...
7 years, 3 months ago (2013-09-16 21:08:07 UTC) #9
haraken
7 years, 3 months ago (2013-09-16 23:55:19 UTC) #10
On 2013/09/16 21:08:07, abarth wrote:
> These are good questions for Marja.  I see that she's pushing isolate
parameters
> further up the call chain.  I'm not sure where the boundary is going to end
up.
> 
> You can always get the isolate from thread-local storage via
> v8::Isolate::GetCurrent().

We will implement ScriptPromise::m_isolate in
https://codereview.chromium.org/23450039/ , so you can use it.

Powered by Google App Engine
This is Rietveld 408576698