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

Issue 2314903004: [promises] Move PromiseResolveThenableJob to c++ (Closed)

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

Description

[promises] Move PromiseResolveThenableJob to c++ - Add a new container object to store the data required for PromiseResolveThenableJob. - Create a new runtime function to enqueue the microtask event with the required data. This patches causes a 4% regression in the bluebird benchmark. BUG=v8:5343 Committed: https://crrev.com/8c87ae9b880f0b6c6824a68b39aec6a204d566c1 Cr-Commit-Position: refs/heads/master@{#39571}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix debug calls #

Patch Set 3 : fmt #

Patch Set 4 : update ast-types #

Patch Set 5 : fix test #

Patch Set 6 : Remove gettask id #

Patch Set 7 : pass {after,before}_debug_event #

Patch Set 8 : revert changes to debug.{cc, js} #

Patch Set 9 : declare var #

Patch Set 10 : fix runtime fun #

Patch Set 11 : update args.length check #

Patch Set 12 : cast to jsobject #

Total comments: 18

Patch Set 13 : fix review comments #

Patch Set 14 : fix blink test #

Patch Set 15 : reorder #

Total comments: 4

Patch Set 16 : address review comments #

Total comments: 2

Patch Set 17 : better exception handling #

Patch Set 18 : refactor #

Patch Set 19 : dont create handles if not in debug #

Total comments: 3

Patch Set 20 : review comments #

Patch Set 21 : address review comments #

Patch Set 22 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -44 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M src/ast/ast-types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +6 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +14 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +66 lines, -16 lines 0 comments Download
M src/js/promise.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +25 lines, -25 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +31 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +10 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +7 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +11 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +15 lines, -0 lines 0 comments Download
A test/mjsunit/es6/promise-thenable-proxy.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 98 (78 generated)
gsathya
I still need to fix the debug calls. Also I'm not too happy with the ...
4 years, 3 months ago (2016-09-06 20:53:40 UTC) #2
adamk
Some initial comments; I do expect the debug stuff to be the trickiest thing here, ...
4 years, 3 months ago (2016-09-06 21:04:57 UTC) #3
gsathya
Fixed the debug calls. There's a fair bit of duplicate code in the debug{.cc, .js} ...
4 years, 3 months ago (2016-09-07 04:45:30 UTC) #16
gsathya
PTAL. Fixed test. But regressed on the benchmark :(
4 years, 3 months ago (2016-09-08 07:35:57 UTC) #20
adamk
https://codereview.chromium.org/2314903004/diff/210001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2314903004/diff/210001/src/isolate.cc#newcode2918 src/isolate.cc:2918: MaybeHandle<Object> maybe_exception; This should be declared right before it's ...
4 years, 3 months ago (2016-09-08 22:28:18 UTC) #39
gsathya
Blink test failures seem unrelated. PTAL https://codereview.chromium.org/2314903004/diff/210001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2314903004/diff/210001/src/isolate.cc#newcode2918 src/isolate.cc:2918: MaybeHandle<Object> maybe_exception; On ...
4 years, 3 months ago (2016-09-14 00:39:14 UTC) #50
adamk
Why do you think the blink tests are unrelated? https://codereview.chromium.org/2314903004/diff/270001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2314903004/diff/270001/src/isolate.cc#newcode2930 src/isolate.cc:2930: ...
4 years, 3 months ago (2016-09-14 22:52:51 UTC) #51
gsathya
Thanks for the review! On 2016/09/14 22:52:51, adamk wrote: > Why do you think the ...
4 years, 3 months ago (2016-09-19 20:49:12 UTC) #58
adamk
Almost there... https://codereview.chromium.org/2314903004/diff/290001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2314903004/diff/290001/src/isolate.cc#newcode2985 src/isolate.cc:2985: MaybeHandle<Object> status = No need to assign ...
4 years, 3 months ago (2016-09-19 21:42:35 UTC) #61
gsathya
On 2016/09/19 21:42:35, adamk wrote: > Almost there... > > https://codereview.chromium.org/2314903004/diff/290001/src/isolate.cc > File src/isolate.cc (right): ...
4 years, 3 months ago (2016-09-20 01:23:29 UTC) #62
adamk
Like the new layout, some more comments on the details https://codereview.chromium.org/2314903004/diff/350001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2314903004/diff/350001/src/isolate.cc#newcode2983 ...
4 years, 3 months ago (2016-09-20 20:08:29 UTC) #75
gsathya
On 2016/09/20 20:08:29, adamk wrote: > Like the new layout, some more comments on the ...
4 years, 3 months ago (2016-09-20 23:09:50 UTC) #82
adamk
lgtm!
4 years, 3 months ago (2016-09-20 23:24:58 UTC) #83
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/2314903004/410001
4 years, 3 months ago (2016-09-20 23:33:21 UTC) #87
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/24558)
4 years, 3 months ago (2016-09-20 23:37:52 UTC) #89
gsathya
+Benedikt for compiler/
4 years, 3 months ago (2016-09-20 23:48:48 UTC) #91
Benedikt Meurer
LGTM on compiler.
4 years, 3 months ago (2016-09-21 03:46:29 UTC) #92
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/2314903004/410001
4 years, 3 months ago (2016-09-21 03:46:54 UTC) #94
commit-bot: I haz the power
Committed patchset #22 (id:410001)
4 years, 3 months ago (2016-09-21 03:49:39 UTC) #96
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 03:49:57 UTC) #98
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/8c87ae9b880f0b6c6824a68b39aec6a204d566c1
Cr-Commit-Position: refs/heads/master@{#39571}

Powered by Google App Engine
This is Rietveld 408576698