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

Issue 2238893002: [debugger] separate break point info from code instrumentation. (Closed)

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

Description

[debugger] separate break point info from code instrumentation. Previously, we would both instrument the code, and add/remove BreakPointInfo objects through BreakLocation. This is bad design and unsuitable for having two different code kinds. We would now add/remove BreakPointInfo objects, and use that as source of truth when instrumenting the code. If we have both bytecode and FCG code, we would simply apply these break points twice to either. Notable changes: - Removed many functionality from BreakLocation. - Instrumentation (patching code for breaks) happens by applying break point info onto code. - Instrumentation (code patching) is done by the BreakIterator. For bytecode, it's BytecodeArrayBreakIterator. For FCG code, it's CodeBreakIterator. - Changes to code instrumentation mostly involves clearing current instrumentation and then (re-)applying break points. - DebugInfo can now reference both bytecode and FCG code. R=jgruber@chromium.org, mstarzinger@chromium.org BUG=v8:5265 Committed: https://crrev.com/b8c050424ea928cd75dec3346013a339fdfaccad Cr-Commit-Position: refs/heads/master@{#38596}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 8

Patch Set 3 : address comments #

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+567 lines, -563 lines) Patch
M src/builtins/arm/builtins-arm.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/ppc/builtins-ppc.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/s390/builtins-s390.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/x87/builtins-x87.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug.h View 5 chunks +128 lines, -118 lines 0 comments Download
M src/debug/debug.cc View 1 2 24 chunks +331 lines, -345 lines 0 comments Download
M src/factory.cc View 1 chunk +8 lines, -13 lines 0 comments Download
M src/objects.h View 1 2 4 chunks +17 lines, -10 lines 0 comments Download
M src/objects.cc View 1 chunk +14 lines, -10 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +24 lines, -2 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-debug.cc View 2 chunks +33 lines, -53 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Yang
4 years, 4 months ago (2016-08-11 12:00:52 UTC) #1
jgruber
LGTM with comments https://codereview.chromium.org/2238893002/diff/20001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2238893002/diff/20001/src/debug/debug.cc#newcode119 src/debug/debug.cc:119: } else { Is abstract_code_->IsByteCodeArray() at ...
4 years, 4 months ago (2016-08-11 14:28:14 UTC) #10
Yang
https://codereview.chromium.org/2238893002/diff/20001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2238893002/diff/20001/src/debug/debug.cc#newcode119 src/debug/debug.cc:119: } else { On 2016/08/11 14:28:13, jgruber wrote: > ...
4 years, 4 months ago (2016-08-12 05:33:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2238893002/40001
4 years, 4 months ago (2016-08-12 05:34:16 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/2284) v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-12 05:37:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2238893002/60001
4 years, 4 months ago (2016-08-12 05:43:35 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-12 06:06:40 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 06:07:00 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b8c050424ea928cd75dec3346013a339fdfaccad
Cr-Commit-Position: refs/heads/master@{#38596}

Powered by Google App Engine
This is Rietveld 408576698