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

Issue 2451163003: [promises] Move PromiseReject to c++ (Closed)

Created:
4 years, 1 month ago by gsathya
Modified:
4 years, 1 month ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[promises] Move PromiseReject to c++ This patch refactors most of FulfillPromise runtime call out to a separate function so that we can to it from PromiseReject runtime call. This patch adds a PromiseStatus enum. BUG=v8:5343 Committed: https://crrev.com/f80f450993f926e6b4cd2d4b0bbf9c931bb199a1 Cr-Commit-Position: refs/heads/master@{#40615}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix handle #

Total comments: 1

Patch Set 4 : Address review comments #

Patch Set 5 : fix test #

Patch Set 6 : use enum #

Patch Set 7 : Fix comment #

Patch Set 8 : move comment #

Total comments: 4

Patch Set 9 : make promise a jsobject #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -33 lines) Patch
M src/globals.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M src/js/async-await.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/js/promise.js View 1 2 3 4 5 6 7 8 6 chunks +20 lines, -23 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 51 (40 generated)
gsathya
We export kRejectedPromise and PromiseSet for async await which is weird since they're internal to ...
4 years, 1 month ago (2016-10-26 13:58:09 UTC) #9
adamk
I'd prefer to keep RejectPromise as a two-line function in promise.js and export that. https://codereview.chromium.org/2451163003/diff/40001/src/runtime/runtime-internal.cc ...
4 years, 1 month ago (2016-10-26 14:39:50 UTC) #14
gsathya
On 2016/10/26 14:39:50, adamk wrote: > I'd prefer to keep RejectPromise as a two-line function ...
4 years, 1 month ago (2016-10-26 16:00:50 UTC) #23
gsathya
On 2016/10/26 16:00:50, gsathya wrote: > On 2016/10/26 14:39:50, adamk wrote: > > I'd prefer ...
4 years, 1 month ago (2016-10-26 16:51:24 UTC) #29
adamk
https://codereview.chromium.org/2451163003/diff/140001/src/js/promise.js File src/js/promise.js (right): https://codereview.chromium.org/2451163003/diff/140001/src/js/promise.js#newcode319 src/js/promise.js:319: return; No need for this empty return https://codereview.chromium.org/2451163003/diff/140001/src/runtime/runtime-internal.cc File ...
4 years, 1 month ago (2016-10-27 08:02:35 UTC) #36
gsathya
https://codereview.chromium.org/2451163003/diff/140001/src/js/promise.js File src/js/promise.js (right): https://codereview.chromium.org/2451163003/diff/140001/src/js/promise.js#newcode319 src/js/promise.js:319: return; On 2016/10/27 08:02:34, adamk wrote: > No need ...
4 years, 1 month ago (2016-10-27 11:27:48 UTC) #41
adamk
lgtm
4 years, 1 month ago (2016-10-27 11:28:45 UTC) #42
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/2451163003/160001
4 years, 1 month ago (2016-10-27 11:49:59 UTC) #46
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 1 month ago (2016-10-27 11:51:41 UTC) #48
Camillo Bruni
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2460213002/ by cbruni@chromium.org. ...
4 years, 1 month ago (2016-10-30 15:49:11 UTC) #49
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:15:17 UTC) #51
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f80f450993f926e6b4cd2d4b0bbf9c931bb199a1
Cr-Commit-Position: refs/heads/master@{#40615}

Powered by Google App Engine
This is Rietveld 408576698