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

Issue 2744213003: [debugger] fix switch block source positions. (Closed)

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

Description

[debugger] fix switch block source positions. The switch statement itself is part of the switch block. However, the source position of the statement is outside of the block. This leads to confusion for the debugger, if the switch block pushes a block context: the current context is a block context, but the scope analysis based on the current source position tells the debugger that we should be outside the scope, so we should have the function context. R=marja@chromium.org BUG=v8:6085 Review-Url: https://codereview.chromium.org/2744213003 Cr-Commit-Position: refs/heads/master@{#43744} Committed: https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309d02f5

Patch Set 1 #

Total comments: 1

Patch Set 2 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
M src/parsing/parser.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/parsing/parser-base.h View 1 chunk +1 line, -1 line 0 comments Download
A test/debugger/regress/regress-6085.js View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Yang
3 years, 9 months ago (2017-03-13 12:19:24 UTC) #1
marja
lgtm % nit https://codereview.chromium.org/2744213003/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2744213003/diff/1/src/parsing/parser.cc#newcode1668 src/parsing/parser.cc:1668: DCHECK(!scope || switch_statement->position() >= scope->start_position()); Nit: ...
3 years, 9 months ago (2017-03-13 12:24:46 UTC) #4
Yang
On 2017/03/13 12:24:46, marja wrote: > lgtm % nit > > https://codereview.chromium.org/2744213003/diff/1/src/parsing/parser.cc > File src/parsing/parser.cc ...
3 years, 9 months ago (2017-03-13 12:28:17 UTC) #5
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/2744213003/20001
3 years, 9 months ago (2017-03-13 12:28:25 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 12:47:56 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/09de9969ccb9bc3bbd667788afad665b309...

Powered by Google App Engine
This is Rietveld 408576698