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

Issue 1842683002: [Interpreter] Adds support to fetch return value on break at return. (Closed)

Created:
4 years, 8 months ago by mythria
Modified:
4 years, 8 months ago
Reviewers:
oth, Yang
CC:
v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, oth, rmcilroy, v8-mips-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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/b82720df34f078ec5e49ccee41e21e08b4862bdf Cr-Commit-Position: refs/heads/master@{#35127}

Patch Set 1 #

Patch Set 2 : Fixed failures on linux-nosnap-dbg #

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

Messages

Total messages: 25 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842683002/1
4 years, 8 months ago (2016-03-29 09:44:32 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-29 10:07:45 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842683002/20001
4 years, 8 months ago (2016-03-29 14:05:16 UTC) #6
mythria
There was a bug in the earlier implementation of this cl. It failed on linux-nosnap-debug ...
4 years, 8 months ago (2016-03-29 14:35:39 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-29 14:51:27 UTC) #11
Yang
On 2016/03/29 14:51:27, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 8 months ago (2016-03-30 07:41:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842683002/20001
4 years, 8 months ago (2016-03-30 07:56:21 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/12979)
4 years, 8 months ago (2016-03-30 08:00:52 UTC) #16
mythria
Orion, could you please look at changes in interpreter.cc. I am trying to reland this ...
4 years, 8 months ago (2016-03-30 08:05:38 UTC) #18
oth
lgtm on Interpreter.
4 years, 8 months ago (2016-03-30 08:40:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842683002/20001
4 years, 8 months ago (2016-03-30 08:49:24 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-30 08:51:11 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 08:52:17 UTC) #25
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b82720df34f078ec5e49ccee41e21e08b4862bdf
Cr-Commit-Position: refs/heads/master@{#35127}

Powered by Google App Engine
This is Rietveld 408576698