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

Issue 2633443002: [promisehook] Pass deferred promise to Before/After callback (Closed)

Created:
3 years, 11 months 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] Pass deferred promise to Before/After callback Before, in `var p1 = p.then(() => {}) we would trigger the before/after callbacks with p as the associated promise, but we must call it with p1. Also removes promise from PromiseReactionJobInfo. Review-Url: https://codereview.chromium.org/2633443002 Cr-Commit-Position: refs/heads/master@{#42295} Committed: https://chromium.googlesource.com/v8/v8/+/687b60c874227906b987758885c2e8d3e6858c52

Patch Set 1 #

Patch Set 2 : Remove promise from PromiseReactionJobInfo #

Patch Set 3 : update test #

Total comments: 5

Patch Set 4 : Remove adaptor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -66 lines) Patch
M src/bootstrapper.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-promise.cc View 1 6 chunks +18 lines, -18 lines 0 comments Download
M src/code-stub-assembler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/code-stub-assembler.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/factory.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/factory.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M src/isolate.cc View 1 3 chunks +2 lines, -8 lines 0 comments Download
M src/objects.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M src/objects-debug.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/objects-printer.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-promise.cc View 1 4 chunks +12 lines, -11 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 4 chunks +21 lines, -8 lines 0 comments Download
M test/cctest/test-code-stub-assembler.cc View 1 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 27 (21 generated)
gsathya
3 years, 11 months ago (2017-01-12 08:54:20 UTC) #9
adamk
lgtm once comments are resolved https://codereview.chromium.org/2633443002/diff/40001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2633443002/diff/40001/src/bootstrapper.cc#newcode1950 src/bootstrapper.cc:1950: isolate, factory->empty_string(), Builtins::kPromiseHandle, 5, ...
3 years, 11 months ago (2017-01-12 18:24:27 UTC) #14
gsathya
https://codereview.chromium.org/2633443002/diff/40001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2633443002/diff/40001/src/bootstrapper.cc#newcode1950 src/bootstrapper.cc:1950: isolate, factory->empty_string(), Builtins::kPromiseHandle, 5, true); On 2017/01/12 18:24:26, adamk ...
3 years, 11 months ago (2017-01-12 19:21:47 UTC) #17
adamk
https://codereview.chromium.org/2633443002/diff/40001/src/runtime/runtime-promise.cc File src/runtime/runtime-promise.cc (right): https://codereview.chromium.org/2633443002/diff/40001/src/runtime/runtime-promise.cc#newcode196 src/runtime/runtime-promise.cc:196: DCHECK_EQ(3, args.length()); On 2017/01/12 19:21:47, gsathya wrote: > On ...
3 years, 11 months ago (2017-01-12 19:42:01 UTC) #18
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/2633443002/60001
3 years, 11 months ago (2017-01-12 22:04:38 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 22:07:04 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/687b60c874227906b987758885c2e8d3e68...

Powered by Google App Engine
This is Rietveld 408576698