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

Issue 2406343002: [promises] Move PromiseReactionJob to c++ (Closed)

Created:
4 years, 2 months ago by gsathya
Modified:
4 years, 2 months ago
Reviewers:
Benedikt Meurer, adamk
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[promises] Move PromiseReactionJob to c++ This patch results in a 11% improvement over 5 runs in the bluebird benchmark. BUG=v8:5343, v8:5046 TBR=bmeurer@chromium.org Committed: https://crrev.com/6f94a8f1c7f0a94c74c5055b02b660d8e93fe5fe Cr-Commit-Position: refs/heads/master@{#40239}

Patch Set 1 #

Patch Set 2 : remove ; #

Total comments: 3

Patch Set 3 : use context from runtime function #

Patch Set 4 : get correct length #

Patch Set 5 : fix whitespace #

Total comments: 32

Patch Set 6 : address review comments #

Patch Set 7 : recreate exception logic #

Patch Set 8 : merge ifs #

Patch Set 9 : fix build #

Total comments: 16

Patch Set 10 : address review comments #

Patch Set 11 : wat #

Patch Set 12 : fix promisedebugeventscope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -42 lines) Patch
M include/v8.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ast/ast-types.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/types.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/contexts.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 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 5 chunks +88 lines, -20 lines 0 comments Download
M src/js/promise.js View 1 2 3 4 5 3 chunks +9 lines, -17 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 6 chunks +35 lines, -3 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 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 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (50 generated)
gsathya
https://codereview.chromium.org/2406343002/diff/20001/src/js/promise.js File src/js/promise.js (right): https://codereview.chromium.org/2406343002/diff/20001/src/js/promise.js#newcode220 src/js/promise.js:220: function() {}); This is such a hack https://codereview.chromium.org/2406343002/diff/20001/src/objects.h File ...
4 years, 2 months ago (2016-10-11 16:40:51 UTC) #10
adamk
https://codereview.chromium.org/2406343002/diff/20001/src/runtime/runtime-internal.cc File src/runtime/runtime-internal.cc (right): https://codereview.chromium.org/2406343002/diff/20001/src/runtime/runtime-internal.cc#newcode586 src/runtime/runtime-internal.cc:586: reaction_context); Rather than creating a function, I think you ...
4 years, 2 months ago (2016-10-11 17:56:41 UTC) #14
gsathya
On 2016/10/11 17:56:41, adamk wrote: > https://codereview.chromium.org/2406343002/diff/20001/src/runtime/runtime-internal.cc > File src/runtime/runtime-internal.cc (right): > > https://codereview.chromium.org/2406343002/diff/20001/src/runtime/runtime-internal.cc#newcode586 > ...
4 years, 2 months ago (2016-10-11 22:52:46 UTC) #23
adamk
Sorry for all the naming nits below... https://codereview.chromium.org/2406343002/diff/80001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2406343002/diff/80001/src/isolate.cc#newcode3015 src/isolate.cc:3015: if (debug()->is_active()) ...
4 years, 2 months ago (2016-10-11 23:14:30 UTC) #25
gsathya
https://codereview.chromium.org/2406343002/diff/80001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2406343002/diff/80001/src/isolate.cc#newcode3015 src/isolate.cc:3015: if (debug()->is_active()) { On 2016/10/11 23:14:30, adamk wrote: > ...
4 years, 2 months ago (2016-10-12 02:00:44 UTC) #35
adamk
Looking good, almost there. Excited about the perf boost! https://codereview.chromium.org/2406343002/diff/160001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2406343002/diff/160001/src/isolate.cc#newcode3013 src/isolate.cc:3013: ...
4 years, 2 months ago (2016-10-12 16:18:12 UTC) #38
gsathya
https://codereview.chromium.org/2406343002/diff/160001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/2406343002/diff/160001/src/isolate.cc#newcode3013 src/isolate.cc:3013: class PromiseDebugEventHelper { On 2016/10/12 16:18:11, adamk wrote: > ...
4 years, 2 months ago (2016-10-12 20:08:53 UTC) #49
adamk
lgtm
4 years, 2 months ago (2016-10-12 20:11:54 UTC) #50
gsathya
On 2016/10/12 20:11:54, adamk wrote: > lgtm +benedikt for compiler/
4 years, 2 months ago (2016-10-12 20:13:51 UTC) #52
adamk
TBRing bmeurer since this is just adding a new instance type.
4 years, 2 months ago (2016-10-12 20:16:32 UTC) #55
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/2406343002/210001
4 years, 2 months ago (2016-10-12 20:43:09 UTC) #59
commit-bot: I haz the power
Committed patchset #12 (id:210001)
4 years, 2 months ago (2016-10-12 20:45:36 UTC) #61
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/6f94a8f1c7f0a94c74c5055b02b660d8e93fe5fe Cr-Commit-Position: refs/heads/master@{#40239}
4 years, 2 months ago (2016-10-12 20:46:09 UTC) #63
Benedikt Meurer
4 years, 2 months ago (2016-10-13 03:35:14 UTC) #64
Message was sent while issue was closed.
Very nice! LGTM

Powered by Google App Engine
This is Rietveld 408576698