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

Issue 2606093002: [promises] Refactor debug code (Closed)

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

Description

[promises] Refactor debug code -- Removes remaning debug from promise.js and moves it to c++ -- Changes debug_id to be a smi in PromiseReactionJobInfo and PromiseResolveThenableJobInfo. -- Changes debug_name to be a smi in PromiseReactionJobInfo and PromiseResolveThenableJobInfo. -- Adds PromiseDebugActionName and PromiseDebugActionType enums -- Adds PromiseDebugActionNameToString and PromiseDebugActionTypeToString helper methods -- Changes variable `status` to be int in runtime functions. -- Changes debug_id to start from 1, not 0 for easier bookkeeping. BUG=v8:5343 Review-Url: https://codereview.chromium.org/2606093002 Cr-Commit-Position: refs/heads/master@{#42052} Committed: https://chromium.googlesource.com/v8/v8/+/a2c15ba376840e5849d77907d1213c8794c48392

Patch Set 1 #

Patch Set 2 : make debug_name a smi #

Total comments: 14

Patch Set 3 : fix csa #

Patch Set 4 : use constant for default #

Patch Set 5 : some fixes #

Patch Set 6 : more refactoring #

Patch Set 7 : fmt #

Total comments: 1

Patch Set 8 : Rename to camelcase #

Patch Set 9 : fix stuff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -143 lines) Patch
M src/code-stub-assembler.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -4 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M src/debug/debug.h View 1 2 3 4 5 6 7 3 chunks +24 lines, -5 lines 0 comments Download
M src/debug/debug.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M src/debug/debug.js View 1 1 chunk +21 lines, -1 line 0 comments Download
M src/factory.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -7 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -13 lines 0 comments Download
M src/js/async-await.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/js/macros.py View 1 1 chunk +15 lines, -2 lines 0 comments Download
M src/js/promise.js View 1 2 3 4 5 6 7 2 chunks +0 lines, -34 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -4 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M src/runtime/runtime-promise.cc View 1 2 3 4 5 6 7 7 chunks +83 lines, -41 lines 0 comments Download
M test/cctest/test-code-stub-assembler.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (36 generated)
gsathya
3 years, 11 months ago (2016-12-29 23:47:03 UTC) #10
adamk
https://codereview.chromium.org/2606093002/diff/10001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2606093002/diff/10001/src/code-stub-assembler.cc#newcode8363 src/code-stub-assembler.cc:8363: StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kDebugIdOffset, I think this meant to say kDebugNameOffset. ...
3 years, 11 months ago (2016-12-30 00:10:04 UTC) #17
gsathya
https://codereview.chromium.org/2606093002/diff/10001/src/code-stub-assembler.cc File src/code-stub-assembler.cc (right): https://codereview.chromium.org/2606093002/diff/10001/src/code-stub-assembler.cc#newcode8363 src/code-stub-assembler.cc:8363: StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kDebugIdOffset, On 2016/12/30 00:10:04, adamk wrote: > I ...
3 years, 11 months ago (2016-12-30 01:48:51 UTC) #28
adamk
lgtm % naming https://codereview.chromium.org/2606093002/diff/110001/src/debug/debug.h File src/debug/debug.h (right): https://codereview.chromium.org/2606093002/diff/110001/src/debug/debug.h#newcode74 src/debug/debug.h:74: const int DEBUG_PROMISE_DEFAULT_ID = 0; kDebugPromiseDefaultId ...
3 years, 11 months ago (2017-01-03 18:18:17 UTC) #29
gsathya
On 2017/01/03 18:18:17, adamk wrote: > lgtm % naming > > https://codereview.chromium.org/2606093002/diff/110001/src/debug/debug.h > File src/debug/debug.h ...
3 years, 11 months ago (2017-01-03 20:26:58 UTC) #36
adamk
lgtm, though you'll need Yang for debug/OWNERS
3 years, 11 months ago (2017-01-03 20:48:17 UTC) #39
Yang
src/debug (mostly rubberstamp) lgtm.
3 years, 11 months ago (2017-01-03 20:58:06 UTC) #40
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/2606093002/150001
3 years, 11 months ago (2017-01-03 21:41:41 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 21:43:44 UTC) #45
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/v8/v8/+/a2c15ba376840e5849d77907d1213c8794c...

Powered by Google App Engine
This is Rietveld 408576698