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

Issue 1032353002: Make sure debugger is ready for breakpoins when we process 'debugger' statement. (Closed)

Created:
5 years, 9 months ago by Dmitry Lomov (no reviews)
Modified:
5 years, 9 months ago
Reviewers:
Yang, yurys
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Make sure debugger is ready for breakpoins when we process 'debugger' statement. On 'debugger' statement, if anything in debugger calls 'EnsureDebugInfo' on a function, EnsureDebugInfo would compile and substitute code without debug break slots. This causes weird behavior later when stepping fails to work (see added test as an example). This fix is to make sure the debugger is prepared for breakpoints in that case as well. Also adds extra testing for bug 468661. R=yangguo@chromium.org,yurys@chromium.orh BUG=v8:3990, chromium:468661 LOG=N Committed: https://crrev.com/15ef61d46801eaf31ff6ebaa34dfe9f9d9697a47 Cr-Commit-Position: refs/heads/master@{#27502}

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR feedback #

Total comments: 2

Patch Set 3 : Rebasing patch 1 #

Patch Set 4 : TODO to clean-up threading issues added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -25 lines) Patch
M src/debug.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A + test/mjsunit/debug-allscopes-on-debugger.js View 3 chunks +7 lines, -24 lines 0 comments Download
M test/mjsunit/es6/regress/regress-468661.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (3 generated)
Dmitry Lomov (no reviews)
PTAL
5 years, 9 months ago (2015-03-26 14:37:31 UTC) #1
Yang
https://codereview.chromium.org/1032353002/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/1032353002/diff/1/src/debug.cc#newcode3085 src/debug.cc:3085: } Can we put all of this into Runtime_DebugBreak?
5 years, 9 months ago (2015-03-26 15:10:48 UTC) #3
Dmitry Lomov (no reviews)
https://codereview.chromium.org/1032353002/diff/1/src/debug.cc File src/debug.cc (right): https://codereview.chromium.org/1032353002/diff/1/src/debug.cc#newcode3085 src/debug.cc:3085: } On 2015/03/26 15:10:48, Yang wrote: > Can we ...
5 years, 9 months ago (2015-03-26 15:51:17 UTC) #4
yurys
https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 src/runtime/runtime-debug.cc:24: !isolate->stack_guard()->CheckDebugBreak(); RequestDebugBreak can be called on another thread. It ...
5 years, 9 months ago (2015-03-26 19:44:49 UTC) #5
Dmitry Lomov (no reviews)
On 2015/03/26 19:44:49, yurys wrote: > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc > File src/runtime/runtime-debug.cc (right): > > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 > ...
5 years, 9 months ago (2015-03-27 08:50:33 UTC) #6
Yang
https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc File src/runtime/runtime-debug.cc (right): https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 src/runtime/runtime-debug.cc:24: !isolate->stack_guard()->CheckDebugBreak(); On 2015/03/26 19:44:48, yurys wrote: > RequestDebugBreak can ...
5 years, 9 months ago (2015-03-27 09:10:21 UTC) #7
Yang
On 2015/03/27 09:10:21, Yang wrote: > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc > File src/runtime/runtime-debug.cc (right): > > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 > ...
5 years, 9 months ago (2015-03-27 09:44:10 UTC) #8
yurys
On 2015/03/27 08:50:33, Dmitry Lomov (chromium) wrote: > On 2015/03/26 19:44:49, yurys wrote: > > ...
5 years, 9 months ago (2015-03-27 09:57:15 UTC) #9
yurys
On 2015/03/27 09:10:21, Yang wrote: > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc > File src/runtime/runtime-debug.cc (right): > > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc#newcode24 > ...
5 years, 9 months ago (2015-03-27 09:58:31 UTC) #10
Dmitry Lomov (no reviews)
On 2015/03/27 09:44:10, Yang wrote: > On 2015/03/27 09:10:21, Yang wrote: > > > https://codereview.chromium.org/1032353002/diff/20001/src/runtime/runtime-debug.cc ...
5 years, 9 months ago (2015-03-27 10:03:52 UTC) #11
yurys
LGTM. Thanks for explaining this, Dmitry!
5 years, 9 months ago (2015-03-27 13:43:32 UTC) #12
Dmitry Lomov (no reviews)
layout tests are happy, landing.
5 years, 9 months ago (2015-03-27 17:57:11 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032353002/60001
5 years, 9 months ago (2015-03-27 17:57:29 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-27 18:33:16 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-27 18:33:25 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/15ef61d46801eaf31ff6ebaa34dfe9f9d9697a47
Cr-Commit-Position: refs/heads/master@{#27502}

Powered by Google App Engine
This is Rietveld 408576698