|
[debugger] fix break locations for assignments and return.
We used to emit debug break location on block entry. This cannot be
ported to the interpreted as we do not emit bytecode for block entry.
This made no sense to begin with though, but accidentally added
break locations for var declarations.
With this change, the debugger no longer breaks at var declarations
without initialization. This is in accordance with the fact that the
interpreter does not emit bytecode for uninitialized var declarations.
Also fix the bytecode to match full-codegen's behavior wrt return
positions:
- there is a break location before the return statement, with the source
position of the return statement.
- right before the actual return, there is another break location. The
source position points to the end of the function.
R=rmcilroy@chromium.org, vogelheim@chromium.org
TBR=rossberg@chromium.org
BUG= v8:4690
LOG=N
Committed: https://crrev.com/d9fe836dd40a9a20e29b87d87e45c2aa884ac5d7
Cr-Commit-Position: refs/heads/master@{#34388}
Total comments: 5
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+101 lines, -111 lines) |
Patch |
|
M |
src/debug/debug.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/debug/debug.cc
|
View
|
|
3 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/full-codegen/full-codegen.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-array-builder.h
|
View
|
1
2
|
5 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-array-builder.cc
|
View
|
1
2
|
5 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/interpreter/bytecode-generator.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/parsing/pattern-rewriter.cc
|
View
|
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/parsing/rewriter.cc
|
View
|
1
2
|
1 chunk |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
test/cctest/cctest.status
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-debug.cc
|
View
|
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-step.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-step-end-of-script.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/es6/debug-stepnext-for.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/debug-step-destructuring-assignment.js
|
View
|
|
1 chunk |
+40 lines, -40 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/debug-step-destructuring-bind.js
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
1
2
|
2 chunks |
+0 lines, -15 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-crbug-568477-2.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 31 (13 generated)
|