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

Issue 260723002: Trigger exception debug event for promises at the throw site. (Closed)

Created:
6 years, 7 months ago by Yang
Modified:
6 years, 7 months ago
Reviewers:
aandrey, rossberg, yurys
CC:
v8-dev, Paweł Hajdan Jr.
Visibility:
Public.

Description

Trigger exception debug event for promises at the throw site. R=rossberg@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21092

Patch Set 1 #

Total comments: 13

Patch Set 2 : comments addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -116 lines) Patch
M include/v8-debug.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/debug.h View 1 3 chunks +14 lines, -3 lines 0 comments Download
M src/debug.cc View 1 7 chunks +55 lines, -9 lines 2 comments Download
M src/debug-debugger.js View 1 chunk +1 line, -2 lines 0 comments Download
M src/isolate.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/mirror-debugger.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/promise.js View 1 4 chunks +13 lines, -21 lines 0 comments Download
M src/runtime.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +15 lines, -6 lines 0 comments Download
M test/mjsunit/es6/debug-promises-caught-all.js View 2 chunks +2 lines, -3 lines 0 comments Download
A + test/mjsunit/es6/debug-promises-caught-late.js View 2 chunks +6 lines, -10 lines 0 comments Download
M test/mjsunit/es6/debug-promises-caught-uncaught.js View 2 chunks +1 line, -3 lines 0 comments Download
A + test/mjsunit/es6/debug-promises-throw-in-constructor.js View 2 chunks +12 lines, -20 lines 0 comments Download
M test/mjsunit/es6/debug-promises-throw-in-reject.js View 1 3 chunks +6 lines, -6 lines 0 comments Download
M test/mjsunit/es6/debug-promises-uncaught-all.js View 2 chunks +8 lines, -15 lines 0 comments Download
M test/mjsunit/es6/debug-promises-uncaught-uncaught.js View 3 chunks +5 lines, -5 lines 0 comments Download
M test/mjsunit/es6/debug-promises-undefined-reject.js View 1 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yang
6 years, 7 months ago (2014-04-30 12:04:25 UTC) #1
Yang
On 2014/04/30 12:04:25, Yang wrote: Main changes are: - Trigger the debug event for uncaught ...
6 years, 7 months ago (2014-04-30 12:06:06 UTC) #2
Yang
I'll work on making the performance impact for non-debugging less in an upcoming CL.
6 years, 7 months ago (2014-04-30 12:07:01 UTC) #3
rossberg
https://codereview.chromium.org/260723002/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/260723002/diff/1/src/debug.cc#newcode1334 src/debug.cc:1334: current_promise_catch_handler_ = NULL; Are we sure that PromiseHandle can ...
6 years, 7 months ago (2014-04-30 12:55:17 UTC) #4
aandrey
looks good https://codereview.chromium.org/260723002/diff/1/test/mjsunit/es6/debug-promises-throw-in-reject.js File test/mjsunit/es6/debug-promises-throw-in-reject.js (right): https://codereview.chromium.org/260723002/diff/1/test/mjsunit/es6/debug-promises-throw-in-reject.js#newcode46 test/mjsunit/es6/debug-promises-throw-in-reject.js:46: assertEquals(q, event_data.promise()); assertTrue(exec_state.frame(0).sourceLineText().indexOf('throw new Error("reject")') > 0); ...
6 years, 7 months ago (2014-04-30 13:01:07 UTC) #5
Yang
https://codereview.chromium.org/260723002/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/260723002/diff/1/src/debug.cc#newcode1334 src/debug.cc:1334: current_promise_catch_handler_ = NULL; On 2014/04/30 12:55:17, rossberg wrote: > ...
6 years, 7 months ago (2014-04-30 13:20:14 UTC) #6
rossberg
lgtm
6 years, 7 months ago (2014-04-30 13:55:38 UTC) #7
aandrey
https://codereview.chromium.org/260723002/diff/20001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/260723002/diff/20001/src/debug.cc#newcode1331 src/debug.cc:1331: current_promise_catch_handler_ = NULL; maybe add ASSERT(!current_promise_getter_.is_null());
6 years, 7 months ago (2014-04-30 13:58:25 UTC) #8
Yang
https://codereview.chromium.org/260723002/diff/20001/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/260723002/diff/20001/src/debug.cc#newcode1331 src/debug.cc:1331: current_promise_catch_handler_ = NULL; On 2014/04/30 13:58:26, aandrey wrote: > ...
6 years, 7 months ago (2014-04-30 14:14:58 UTC) #9
Yang
6 years, 7 months ago (2014-04-30 14:17:57 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 manually as r21092 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698