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

Issue 1222093007: Debugger: use debug break slot to break on call. (Closed)

Created:
5 years, 5 months ago by Yang
Modified:
5 years, 5 months ago
Reviewers:
ulan
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Debugger: use debug break slot to break on call. Break point at calls are currently set via IC. To change this, we need to set debug break slots instead. We also need to distinguish those debug break slots as calls to support step-in. To implement this, we add a data field to debug break reloc info to indicate non-call debug breaks or in case of call debug breaks, the number of arguments. We can later use this to find the callee on the evaluation stack in Debug::PrepareStep. BUG=v8:4269 R=ulan@chromium.org LOG=N Committed: https://crrev.com/8965b683ce39bc3c24ed2466d189323d81a70852 Cr-Commit-Position: refs/heads/master@{#29561}

Patch Set 1 #

Total comments: 6

Patch Set 2 : complete #

Patch Set 3 : fix mips #

Total comments: 6

Patch Set 4 : rebased and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -852 lines) Patch
M src/arm/assembler-arm.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm/debug-arm.cc View 1 6 chunks +14 lines, -74 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 1 2 3 6 chunks +6 lines, -5 lines 0 comments Download
M src/arm64/assembler-arm64.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm64/debug-arm64.cc View 1 6 chunks +5 lines, -84 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 3 6 chunks +23 lines, -21 lines 0 comments Download
M src/assembler.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 2 3 9 chunks +77 lines, -17 lines 0 comments Download
M src/builtins.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M src/builtins.cc View 1 1 chunk +0 lines, -21 lines 0 comments Download
M src/code-stubs.h View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M src/debug.h View 1 2 3 6 chunks +11 lines, -35 lines 0 comments Download
M src/debug.cc View 1 2 3 16 chunks +21 lines, -177 lines 0 comments Download
M src/disassembler.cc View 1 1 chunk +1 line, -9 lines 0 comments Download
M src/full-codegen.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 3 chunks +28 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/ia32/debug-ia32.cc View 1 7 chunks +6 lines, -76 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 6 chunks +6 lines, -5 lines 0 comments Download
M src/mips/assembler-mips.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/mips/debug-mips.cc View 1 2 6 chunks +13 lines, -75 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 2 3 6 chunks +19 lines, -18 lines 0 comments Download
M src/mips64/assembler-mips64.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/mips64/debug-mips64.cc View 1 6 chunks +4 lines, -59 lines 0 comments Download
M src/mips64/full-codegen-mips64.cc View 1 2 3 6 chunks +19 lines, -18 lines 0 comments Download
M src/x64/assembler-x64.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/debug-x64.cc View 1 8 chunks +6 lines, -67 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 6 chunks +20 lines, -18 lines 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +0 lines, -55 lines 0 comments Download
A test/mjsunit/debug-stepin-construct-call.js View 1 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Yang
5 years, 5 months ago (2015-07-06 13:55:14 UTC) #1
Yang
On 2015/07/06 13:55:14, Yang wrote: this is only the ia32 port. Id like to get ...
5 years, 5 months ago (2015-07-06 14:19:05 UTC) #2
ulan
looks good, few nits: https://codereview.chromium.org/1222093007/diff/1/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/1222093007/diff/1/src/assembler.cc#newcode517 src/assembler.cc:517: if (RelocInfo::IsDebugBreakSlot(rmode)) { Let's make ...
5 years, 5 months ago (2015-07-07 13:31:31 UTC) #3
Yang
Addressed your comments. I ended up simply implementing the whole thing for setting debug breaks ...
5 years, 5 months ago (2015-07-07 14:39:00 UTC) #4
ulan
looking good. https://codereview.chromium.org/1222093007/diff/40001/src/assembler.cc File src/assembler.cc (right): https://codereview.chromium.org/1222093007/diff/40001/src/assembler.cc#newcode737 src/assembler.cc:737: if (SetMode(rmode)) return AdvanceReadDebugBreakSlotData(); Did you mean ...
5 years, 5 months ago (2015-07-08 11:53:33 UTC) #5
Yang
I foolishly rebased. In the third patch set I only touched src/debug.cc, src/debug.h and src/assembler.cc ...
5 years, 5 months ago (2015-07-09 09:38:48 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222093007/60001
5 years, 5 months ago (2015-07-09 11:03:39 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel/builds/6510)
5 years, 5 months ago (2015-07-09 11:06:48 UTC) #10
ulan
lgtm
5 years, 5 months ago (2015-07-10 08:30:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222093007/60001
5 years, 5 months ago (2015-07-10 08:33:34 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-10 08:49:19 UTC) #14
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 08:49:39 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8965b683ce39bc3c24ed2466d189323d81a70852
Cr-Commit-Position: refs/heads/master@{#29561}

Powered by Google App Engine
This is Rietveld 408576698