Description[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/fb65527b75754bcf3b173f16f5d0b04a1c6d9b99
Cr-Commit-Position: refs/heads/master@{#35060}
Patch Set 1 #Patch Set 2 : Fixed the bugs in earlier implementation. Changed full-codegen to match ignition for fetching the r… #
Total comments: 13
Patch Set 3 : Adresses comments from Ross. #Patch Set 4 : Addresses comments from Yang and port to arm/arm64. #Patch Set 5 : Rebased the patch. #
Total comments: 4
Patch Set 6 : Addresses comments. #Patch Set 7 : rebased the patch. #Patch Set 8 : Fixed compilation error. #Patch Set 9 : Port to ppc,mips,mips64,x87,s390 #
Messages
Total messages: 55 (23 generated)
|