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

Issue 2063013004: [wasm] Disassemble wasm code from script (Closed)

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

Description

[wasm] Disassemble wasm code from script This stores the wasm object and the function index in the script, and adds functions to get the disassembled wasm code as well as the offset table mapping from byte position to line and column in the disassembly solely from the script. This will be used to show "ui source code" in DevTools, and map raw locations from the stack trace into this code view. R=yangguo@chromium.org, ahaas@chromium.org, titzer@chromium.org BUG=chromium:613110

Patch Set 1 #

Patch Set 2 : address gcmole report #

Patch Set 3 : Add test case #

Total comments: 10

Patch Set 4 : address comments #

Total comments: 6

Patch Set 5 : remove unimplemented wasm SetBreakPoint method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -43 lines) Patch
M src/debug/debug.js View 1 2 3 6 chunks +32 lines, -20 lines 0 comments Download
M src/objects.h View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 2 chunks +31 lines, -15 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/wasm-debug.cc View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
A test/mjsunit/wasm/debug-disassembly.js View 1 2 3 1 chunk +139 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (8 generated)
Clemens Hammacher
4 years, 6 months ago (2016-06-15 19:15:56 UTC) #1
Yang
https://codereview.chromium.org/2063013004/diff/40001/src/debug/debug.js File src/debug/debug.js (right): https://codereview.chromium.org/2063013004/diff/40001/src/debug/debug.js#newcode861 src/debug/debug.js:861: Debug.scriptById = function(scriptId) { Please do not put this ...
4 years, 6 months ago (2016-06-16 13:49:36 UTC) #2
ahaas
wasm looks good https://codereview.chromium.org/2063013004/diff/40001/test/mjsunit/wasm/debug-disassembly.js File test/mjsunit/wasm/debug-disassembly.js (right): https://codereview.chromium.org/2063013004/diff/40001/test/mjsunit/wasm/debug-disassembly.js#newcode48 test/mjsunit/wasm/debug-disassembly.js:48: if (name.endsWith("/0")) { What's the idea ...
4 years, 6 months ago (2016-06-17 06:57:50 UTC) #3
Clemens Hammacher
https://codereview.chromium.org/2063013004/diff/40001/src/debug/debug.js File src/debug/debug.js (right): https://codereview.chromium.org/2063013004/diff/40001/src/debug/debug.js#newcode861 src/debug/debug.js:861: Debug.scriptById = function(scriptId) { On 2016/06/16 13:49:35, Yang wrote: ...
4 years, 6 months ago (2016-06-17 18:01:55 UTC) #4
Yang
lgtm https://codereview.chromium.org/2063013004/diff/60001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2063013004/diff/60001/src/debug/debug.cc#newcode813 src/debug/debug.cc:813: ->SetBreakPoint(*source_position); The reason we pass in a pointer ...
4 years, 6 months ago (2016-06-17 18:16:31 UTC) #5
Clemens Hammacher
@ahaas: same here, missing LGTM https://codereview.chromium.org/2063013004/diff/60001/src/debug/debug.cc File src/debug/debug.cc (right): https://codereview.chromium.org/2063013004/diff/60001/src/debug/debug.cc#newcode813 src/debug/debug.cc:813: ->SetBreakPoint(*source_position); On 2016/06/17 18:16:31, ...
4 years, 6 months ago (2016-06-24 15:12:33 UTC) #6
Clemens Hammacher
https://codereview.chromium.org/2063013004/diff/60001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/2063013004/diff/60001/src/objects-inl.h#newcode5583 src/objects-inl.h:5583: this->type() != TYPE_WASM) On 2016/06/24 15:12:33, Clemens Hammacher wrote: ...
4 years, 6 months ago (2016-06-24 15:45:44 UTC) #7
titzer
lgtm
4 years, 5 months ago (2016-06-29 09:35:04 UTC) #8
commit-bot: I haz the power
This CL has an open dependency (Issue 2069823003 Patch 120001). Please resolve the dependency and ...
4 years, 5 months ago (2016-06-29 09:35:25 UTC) #12
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/2063013004/80001
4 years, 5 months ago (2016-06-29 12:00:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/builds/20071) v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
4 years, 5 months ago (2016-06-29 12:03:10 UTC) #17
titzer
4 years, 5 months ago (2016-06-29 12:18:23 UTC) #19
On 2016/06/29 12:03:10, commit-bot: I haz the power wrote:
> Try jobs failed on following builders:
>   v8_android_arm_compile_rel on master.tryserver.v8 (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.v8/builders/v8_android_arm_compile_rel/...)
>   v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/buil...)
>   v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/8223)
>   v8_linux_arm64_rel_ng on master.tryserver.v8 (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/build...)
>   v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED,
> http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/8203)
>   v8_linux_mips64el_compile_rel on master.tryserver.v8 (JOB_FAILED,
>
http://build.chromium.org/p/tryserver.v8/builders/v8_linux_mips64el_compile_r...)
>   v8_linux_rel_ng on master.tryserver.v8 (JOB_FAILED,
> http://build.chromium.org/p/tryserver.v8/builders/v8_linux_rel_ng/builds/8183)
>   v8_presubmit on master.tryserver.v8 (JOB_FAILED,
> http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/18382)

The patch seems to be failing due to the dependency which was reuploaded and
landed.

Superceded by: https://codereview.chromium.org/2105303002

Powered by Google App Engine
This is Rietveld 408576698