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

Issue 2578173004: [promisehook] Fire init hook for promise subclass (Closed)

Created:
4 years ago by gsathya
Modified:
3 years, 11 months ago
Reviewers:
Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[promisehook] Fire init hook for promise subclass Add test as well. Add regression test for passing uninitialized promises to init hook BUG=v8:4643 Review-Url: https://codereview.chromium.org/2578173004 Cr-Commit-Position: refs/heads/master@{#41982} Committed: https://chromium.googlesource.com/v8/v8/+/df179704ffe34d6c49cffbec24fa7ba43090bfc1

Patch Set 1 #

Patch Set 2 : extend test #

Total comments: 1

Patch Set 3 : Add init hook for subclass #

Patch Set 4 : Fix test #

Total comments: 2

Patch Set 5 : use jspromise #

Total comments: 2

Patch Set 6 : add regression test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -8 lines) Patch
M src/builtins/builtins-promise.cc View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 2 chunks +48 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (26 generated)
gsathya
4 years ago (2016-12-16 19:24:34 UTC) #6
Dan Ehrenberg
https://codereview.chromium.org/2578173004/diff/20001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/2578173004/diff/20001/test/cctest/test-api.cc#newcode18433 test/cctest/test-api.cc:18433: + // No init hook for subclasses Is this ...
4 years ago (2016-12-20 16:29:38 UTC) #7
gsathya
On 2016/12/20 16:29:38, Dan Ehrenberg wrote: > https://codereview.chromium.org/2578173004/diff/20001/test/cctest/test-api.cc > File test/cctest/test-api.cc (right): > > https://codereview.chromium.org/2578173004/diff/20001/test/cctest/test-api.cc#newcode18433 ...
4 years ago (2016-12-20 18:55:40 UTC) #16
Dan Ehrenberg
I think these semantics make more sense. Yes, it's impossible to handle arbitrary thenables, but ...
4 years ago (2016-12-20 22:45:18 UTC) #17
gsathya
https://codereview.chromium.org/2578173004/diff/60001/src/isolate.h File src/isolate.h (right): https://codereview.chromium.org/2578173004/diff/60001/src/isolate.h#newcode1132 src/isolate.h:1132: void RunPromiseHook(PromiseHookType type, Handle<JSObject> promise, On 2016/12/20 22:45:18, Dan ...
4 years ago (2016-12-20 23:47:26 UTC) #20
gsathya
On 2016/12/20 23:47:26, gsathya wrote: > https://codereview.chromium.org/2578173004/diff/60001/src/isolate.h > File src/isolate.h (right): > > https://codereview.chromium.org/2578173004/diff/60001/src/isolate.h#newcode1132 > ...
3 years, 11 months ago (2016-12-28 17:36:13 UTC) #23
Dan Ehrenberg
lgtm Sorry for the delay in response. This version looks really great--I didn't realize we ...
3 years, 11 months ago (2016-12-28 18:14:42 UTC) #25
gsathya
Thanks for the review! https://codereview.chromium.org/2578173004/diff/80001/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2578173004/diff/80001/src/builtins/builtins-promise.cc#newcode615 src/builtins/builtins-promise.cc:615: debug_push(this), init(this); On 2016/12/28 18:14:42, ...
3 years, 11 months ago (2016-12-28 18:59:38 UTC) #29
gsathya
On 2016/12/28 18:59:38, gsathya wrote: > Thanks for the review! > > https://codereview.chromium.org/2578173004/diff/80001/src/builtins/builtins-promise.cc > File ...
3 years, 11 months ago (2016-12-28 19:18:17 UTC) #30
Dan Ehrenberg
lgtm
3 years, 11 months ago (2016-12-28 19:21:06 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2578173004/100001
3 years, 11 months ago (2016-12-28 19:29:28 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2016-12-28 19:31:29 UTC) #38
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/df179704ffe34d6c49cffbec24fa7ba4309...

Powered by Google App Engine
This is Rietveld 408576698