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

Issue 2572623002: PromiseHandle port to TF (Closed)

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

Description

PromiseHandle port to TF Splits PromiseHandle into two TF builtins to account for catch prediction. An exception in PromiseHandleReject builtin results in a "caught" prediction whereas an expception in PromiseHandle results in a "promise rejection" prediction. An extra is_exception_caught bit is added to Code to mark this catch prediction behavior. BUG=v8:5343 Committed: https://crrev.com/9fc3c017e112276fc7709d02b6af620cbe6f69d3 Cr-Commit-Position: refs/heads/master@{#41683}

Patch Set 1 #

Patch Set 2 : use internal promise resolve #

Patch Set 3 : fix custom handler #

Patch Set 4 : remove unused var #

Patch Set 5 : split into two builtins #

Patch Set 6 : add exception_caught to Code #

Patch Set 7 : create TFS #

Total comments: 1

Patch Set 8 : use descriptor #

Patch Set 9 : fix ordering #

Total comments: 14

Patch Set 10 : add comments #

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -33 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download
M src/builtins/builtins.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins-promise.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +122 lines, -0 lines 0 comments Download
M src/code-factory.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/code-factory.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M src/heap-symbols.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M src/interface-descriptors.h View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 1 chunk +11 lines, -3 lines 0 comments Download
M src/js/promise.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -26 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (41 generated)
gsathya
PTAL at the PromiseHandleReject builtin which should be a TFS
4 years ago (2016-12-13 04:23:51 UTC) #23
Benedikt Meurer
https://codereview.chromium.org/2572623002/diff/120001/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2572623002/diff/120001/src/builtins/builtins-promise.cc#newcode895 src/builtins/builtins-promise.cc:895: void Builtins::Generate_PromiseHandleReject( Why do you need to put this ...
4 years ago (2016-12-13 06:20:52 UTC) #24
gsathya
On 2016/12/13 06:20:52, Benedikt Meurer wrote: > https://codereview.chromium.org/2572623002/diff/120001/src/builtins/builtins-promise.cc > File src/builtins/builtins-promise.cc (right): > > https://codereview.chromium.org/2572623002/diff/120001/src/builtins/builtins-promise.cc#newcode895 ...
4 years ago (2016-12-13 06:22:09 UTC) #25
Benedikt Meurer
On 2016/12/13 06:22:09, gsathya wrote: > On 2016/12/13 06:20:52, Benedikt Meurer wrote: > > > ...
4 years ago (2016-12-13 06:27:55 UTC) #26
Benedikt Meurer
4 years ago (2016-12-13 06:28:18 UTC) #28
caitp
On 2016/12/13 06:27:55, Benedikt Meurer wrote: > On 2016/12/13 06:22:09, gsathya wrote: > > On ...
4 years ago (2016-12-13 16:38:07 UTC) #29
caitp
So, I have a q: I had suggested on IRC that we remove the resolve/reject ...
4 years ago (2016-12-13 16:42:52 UTC) #30
Benedikt Meurer
On 2016/12/13 16:42:52, caitp wrote: > So, I have a q: > > I had ...
4 years ago (2016-12-13 18:30:30 UTC) #33
gsathya
On 2016/12/13 18:30:30, Benedikt Meurer wrote: > On 2016/12/13 16:42:52, caitp wrote: > > So, ...
4 years ago (2016-12-13 21:22:07 UTC) #36
Igor Sheludko
(Don't forget to update description) lgtm with nits: https://codereview.chromium.org/2572623002/diff/160001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2572623002/diff/160001/src/bootstrapper.cc#newcode1917 src/bootstrapper.cc:1917: { ...
4 years ago (2016-12-13 23:09:01 UTC) #41
gsathya
https://codereview.chromium.org/2572623002/diff/160001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/2572623002/diff/160001/src/bootstrapper.cc#newcode1917 src/bootstrapper.cc:1917: { // Internal: Promisehandle On 2016/12/13 23:09:00, Igor Sheludko ...
4 years ago (2016-12-13 23:51:03 UTC) #47
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/2572623002/200001
4 years ago (2016-12-13 23:52:27 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years ago (2016-12-13 23:54:14 UTC) #53
commit-bot: I haz the power
4 years ago (2016-12-13 23:55:18 UTC) #55
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/9fc3c017e112276fc7709d02b6af620cbe6f69d3
Cr-Commit-Position: refs/heads/master@{#41683}

Powered by Google App Engine
This is Rietveld 408576698