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

Issue 1618343002: [interpreter, debugger] abstraction for source position calculation. (Closed)

Created:
4 years, 11 months ago by Yang
Modified:
4 years, 10 months ago
Reviewers:
ulan, rmcilroy, vogelheim
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

[interpreter, debugger] abstraction for source position calculation. This change adds AbstractCode, which can be either Code or BytecodeArray, and adds methods to calculate source position based on that. Also cleans up to use code offsets instead of raw PC where possible, and consistently uses the offset from instruction start (as opposed to code object start). R=rmcilroy@chromium.org, vogelheim@chromium.org BUG=v8:4690 LOG=N Committed: https://crrev.com/55438d60847c4df4579539ec48c60ec11cd522c4 Cr-Commit-Position: refs/heads/master@{#33579}

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressed comments #

Patch Set 3 : fix #

Patch Set 4 : casts #

Patch Set 5 : remove bogus assertion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -165 lines) Patch
M src/accessors.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/debug/debug.h View 1 5 chunks +12 lines, -13 lines 0 comments Download
M src/debug/debug.cc View 1 2 3 10 chunks +45 lines, -32 lines 0 comments Download
M src/debug/debug-frames.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/frames.h View 1 3 chunks +9 lines, -6 lines 0 comments Download
M src/frames.cc View 1 2 3 4 6 chunks +38 lines, -25 lines 0 comments Download
M src/heap/heap.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/isolate.cc View 1 2 3 6 chunks +13 lines, -9 lines 0 comments Download
M src/objects.h View 1 12 chunks +37 lines, -23 lines 0 comments Download
M src/objects.cc View 1 10 chunks +36 lines, -36 lines 0 comments Download
M src/objects-inl.h View 1 4 chunks +7 lines, -2 lines 0 comments Download
M src/objects-printer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M src/runtime/runtime-generator.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/ignition/stack-trace-source-position.js View 1 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (12 generated)
Yang
4 years, 11 months ago (2016-01-22 14:15:11 UTC) #1
rmcilroy
Lgtm with a couple of nits. https://codereview.chromium.org/1618343002/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/1618343002/diff/1/src/debug/debug.cc#newcode1502 src/debug/debug.cc:1502: // has stopped. ...
4 years, 11 months ago (2016-01-22 19:16:34 UTC) #2
vogelheim
lgtm [still learning; so I actually don't have much to add here.]
4 years, 11 months ago (2016-01-25 17:29:03 UTC) #3
Yang
https://codereview.chromium.org/1618343002/diff/1/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/1618343002/diff/1/src/debug/debug.cc#newcode1502 src/debug/debug.cc:1502: // has stopped. On 2016/01/22 19:16:34, rmcilroy wrote: > ...
4 years, 10 months ago (2016-01-28 09:09:53 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/1618343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618343002/20001
4 years, 10 months ago (2016-01-28 09:11:28 UTC) #6
ulan
lgtm
4 years, 10 months ago (2016-01-28 09:11:37 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_mips64el_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_rel/builds/9464)
4 years, 10 months ago (2016-01-28 09:16:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618343002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618343002/40001
4 years, 10 months ago (2016-01-28 09:17:58 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/12929)
4 years, 10 months ago (2016-01-28 09:24:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618343002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618343002/60001
4 years, 10 months ago (2016-01-28 10:42:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/631) v8_linux64_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 10 months ago (2016-01-28 11:03:58 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618343002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618343002/80001
4 years, 10 months ago (2016-01-28 11:48:38 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-01-28 12:12:00 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 12:12:35 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/55438d60847c4df4579539ec48c60ec11cd522c4
Cr-Commit-Position: refs/heads/master@{#33579}

Powered by Google App Engine
This is Rietveld 408576698