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

Issue 2493773003: [inspector] Introduce translation of wasm frames (Closed)

Created:
4 years, 1 month ago by Clemens Hammacher
Modified:
4 years, 1 month ago
Reviewers:
kozy, titzer, dgozman, Yang
CC:
devtools-reviews_chromium.org, v8-reviews_googlegroups.com, Yang
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] Introduce translation of wasm frames This allows to show wasm source (disassembled wasm code) in DevTools. See design doc for details. More tests for the disassembly will have to follow. Also, the text format (generated by V8) will be changed. BUG=chromium:659715 R=yangguo@chromium.org, kozyatinskiy@chromium.org, titzer@chromium.org, dgozman@chromium.org Committed: https://crrev.com/d4a42a5f89b923a1f8cf0b09bbbd3f4a83049c5e Cr-Commit-Position: refs/heads/master@{#41055}

Patch Set 1 #

Patch Set 2 : Avoid usage of emplace (not available before gcc 4.8) #

Patch Set 3 : Fix signed/unsigned issues #

Patch Set 4 : More signed/unsigned #

Total comments: 12

Patch Set 5 : Address comments #

Total comments: 8

Patch Set 6 : Address Bens comments #

Patch Set 7 : Fix last patch #

Total comments: 6

Patch Set 8 : Address Alexey's comments #

Total comments: 16

Patch Set 9 : Address Dmitry's comments #

Total comments: 2

Patch Set 10 : Very last-minute changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -77 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 9 6 chunks +35 lines, -1 line 0 comments Download
M src/debug/debug-interface.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -0 lines 0 comments Download
M src/inspector/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M src/inspector/inspector.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M src/inspector/v8-debugger.cc View 1 2 3 4 5 6 7 8 9 4 chunks +43 lines, -29 lines 0 comments Download
M src/inspector/v8-debugger-agent-impl.cc View 1 2 3 4 5 6 7 8 11 chunks +48 lines, -17 lines 0 comments Download
M src/inspector/v8-debugger-script.h View 3 chunks +12 lines, -10 lines 0 comments Download
M src/inspector/v8-debugger-script.cc View 3 chunks +27 lines, -6 lines 0 comments Download
M src/inspector/v8-inspector-impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/inspector/v8-stack-trace-impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +19 lines, -7 lines 0 comments Download
A src/inspector/wasm-translation.h View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download
A src/inspector/wasm-translation.cc View 1 2 3 4 5 6 7 8 1 chunk +310 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 2 chunks +29 lines, -0 lines 0 comments Download
M test/inspector/debugger/wasm-stack.js View 1 chunk +6 lines, -4 lines 0 comments Download
M test/inspector/debugger/wasm-stack-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 71 (50 generated)
Clemens Hammacher
4 years, 1 month ago (2016-11-11 03:10:32 UTC) #15
titzer
https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> Can we introduce a ...
4 years, 1 month ago (2016-11-11 10:59:02 UTC) #16
dgozman
https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> On 2016/11/11 10:59:02, titzer ...
4 years, 1 month ago (2016-11-11 21:50:35 UTC) #18
Clemens Hammacher
PTAL https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> On 2016/11/11 at ...
4 years, 1 month ago (2016-11-16 11:36:28 UTC) #21
titzer
LGTM with nits https://codereview.chromium.org/2493773003/diff/80001/src/inspector/wasm-translation.h File src/inspector/wasm-translation.h (right): https://codereview.chromium.org/2493773003/diff/80001/src/inspector/wasm-translation.h#newcode42 src/inspector/wasm-translation.h:42: bool Translate(protocol::Debugger::Location* location); Should this be ...
4 years, 1 month ago (2016-11-16 14:23:59 UTC) #24
Clemens Hammacher
PTAL https://codereview.chromium.org/2493773003/diff/80001/src/inspector/wasm-translation.h File src/inspector/wasm-translation.h (right): https://codereview.chromium.org/2493773003/diff/80001/src/inspector/wasm-translation.h#newcode42 src/inspector/wasm-translation.h:42: bool Translate(protocol::Debugger::Location* location); On 2016/11/16 at 14:23:59, titzer ...
4 years, 1 month ago (2016-11-16 15:21:20 UTC) #27
titzer
lgtm
4 years, 1 month ago (2016-11-16 15:22:32 UTC) #28
kozy
https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> On 2016/11/16 11:36:28, Clemens ...
4 years, 1 month ago (2016-11-16 16:13:41 UTC) #33
titzer
On 2016/11/16 16:13:41, kozyatinskiy wrote: > https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h > File src/debug/debug-interface.h (right): > > https://codereview.chromium.org/2493773003/diff/60001/src/debug/debug-interface.h#newcode206 > ...
4 years, 1 month ago (2016-11-16 16:20:08 UTC) #34
kozy
As I understand provisional breakpoints support will be added later? (set breakpoint and then after ...
4 years, 1 month ago (2016-11-16 16:44:53 UTC) #37
Clemens Hammacher
https://codereview.chromium.org/2493773003/diff/120001/src/inspector/v8-debugger-agent-impl.h File src/inspector/v8-debugger-agent-impl.h (right): https://codereview.chromium.org/2493773003/diff/120001/src/inspector/v8-debugger-agent-impl.h#newcode146 src/inspector/v8-debugger-agent-impl.h:146: void newWasmScript(v8::Local<v8::Object> scriptWrapper); On 2016/11/16 at 16:44:53, kozyatinskiy wrote: ...
4 years, 1 month ago (2016-11-16 16:57:31 UTC) #40
Clemens Hammacher
On 2016/11/16 at 16:44:53, kozyatinskiy wrote: > As I understand provisional breakpoints support will be ...
4 years, 1 month ago (2016-11-16 17:00:50 UTC) #41
dgozman
https://codereview.chromium.org/2493773003/diff/140001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/140001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> Let's have a comment ...
4 years, 1 month ago (2016-11-16 19:00:10 UTC) #44
Clemens Hammacher
PTAL https://codereview.chromium.org/2493773003/diff/140001/src/debug/debug-interface.h File src/debug/debug-interface.h (right): https://codereview.chromium.org/2493773003/diff/140001/src/debug/debug-interface.h#newcode206 src/debug/debug-interface.h:206: static std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> On 2016/11/16 at ...
4 years, 1 month ago (2016-11-16 20:31:30 UTC) #47
Yang
lgtm https://codereview.chromium.org/2493773003/diff/140001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2493773003/diff/140001/src/api.cc#newcode9115 src/api.cc:9115: std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> I have absolutely no ...
4 years, 1 month ago (2016-11-16 20:41:12 UTC) #48
dgozman
lgtm with a comment https://codereview.chromium.org/2493773003/diff/140001/src/inspector/v8-stack-trace-impl.cc File src/inspector/v8-stack-trace-impl.cc (right): https://codereview.chromium.org/2493773003/diff/140001/src/inspector/v8-stack-trace-impl.cc#newcode43 src/inspector/v8-stack-trace-impl.cc:43: agent->wasmTranslation()->TranslateProtocolLocationToWasmScriptLocation( On 2016/11/16 20:31:30, Clemens ...
4 years, 1 month ago (2016-11-16 22:01:27 UTC) #51
Clemens Hammacher
https://codereview.chromium.org/2493773003/diff/140001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2493773003/diff/140001/src/api.cc#newcode9115 src/api.cc:9115: std::pair<std::string, std::vector<std::tuple<uint32_t, int, int>>> On 2016/11/16 at 20:41:12, Yang ...
4 years, 1 month ago (2016-11-16 22:43:31 UTC) #61
Clemens Hammacher
If the last patch set looks good to the bots, I will land it then. ...
4 years, 1 month ago (2016-11-16 22:53:28 UTC) #62
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/2493773003/220001
4 years, 1 month ago (2016-11-16 23:30:20 UTC) #68
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 1 month ago (2016-11-16 23:35:36 UTC) #69
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:37:18 UTC) #71
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/d4a42a5f89b923a1f8cf0b09bbbd3f4a83049c5e
Cr-Commit-Position: refs/heads/master@{#41055}

Powered by Google App Engine
This is Rietveld 408576698