|
[Interpreter] Adds support to fetch return value on break at return.
Debugger fetches the return value of a function when we break at return.
Interpreter holds the return value in accumulator. This is not stored in a
specified location on stack and hence it is not possible to look it up from
stack similar to full-codegen or optimized frames. This cl adds support to
store the value of accumulator on debug breaks. The value of accumulator is
passed to the runtime function and is then stored in thread local data.
Also changes full-codegen implementation to match that of ignition.
The return value from full-codegen is also stored in thread local data.
The return value is fetched directly thread local data instead of
finding it by iterating over frames.
BUG= v8:4280, v8:4690
LOG=N
Committed: https://crrev.com/b82720df34f078ec5e49ccee41e21e08b4862bdf
Cr-Commit-Position: refs/heads/master@{#35127}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+192 lines, -119 lines) |
Patch |
|
M |
src/debug/arm/debug-arm.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/arm64/debug-arm64.cc
|
View
|
1
|
2 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/debug/debug.h
|
View
|
|
4 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/debug/debug.cc
|
View
|
|
6 chunks |
+10 lines, -24 lines |
0 comments
|
Download
|
|
M |
src/debug/ia32/debug-ia32.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/mips/debug-mips.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/mips64/debug-mips64.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/ppc/debug-ppc.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/s390/debug-s390.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/x64/debug-x64.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/debug/x87/debug-x87.cc
|
View
|
1
|
2 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/interpreter/interpreter.cc
|
View
|
|
1 chunk |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-debug.cc
|
View
|
|
3 chunks |
+35 lines, -29 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 25 (12 generated)
|