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

Issue 2720813002: [wasm] Fix importing wasm functions which are being debugged (Closed)

Created:
3 years, 9 months ago by Clemens Hammacher
Modified:
3 years, 9 months ago
Reviewers:
kozy, titzer
CC:
devtools-reviews_chromium.org, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Fix importing wasm functions which are being debugged If the imported wasm function is being debugged (i.e. redirects to the interpreter), call it via the JS_TO_WASM stub, such that we can disable the breakpoint later by patching the exported function. This also contains a drive-by fix in wasm-translation.cc (for the case that all known positions are bigger than the requested one). R=titzer@chromium.org, kozyatinskiy@chromium.org BUG=v8:5971, v8:5822 Review-Url: https://codereview.chromium.org/2720813002 Cr-Commit-Position: refs/heads/master@{#43583} Committed: https://chromium.googlesource.com/v8/v8/+/eb36a7dbcfaeca660da0c5bb67d58d235e61181d

Patch Set 1 #

Total comments: 19

Patch Set 2 : Awesome inspector test now :) #

Patch Set 3 : Awesome inspector test now :) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -23 lines) Patch
M src/inspector/wasm-translation.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 chunks +17 lines, -12 lines 0 comments Download
M test/inspector/debugger/step-into.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
A test/inspector/debugger/wasm-imports.js View 1 2 1 chunk +108 lines, -0 lines 0 comments Download
A test/inspector/debugger/wasm-imports-expected.txt View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M test/inspector/protocol-test.js View 1 2 3 chunks +8 lines, -3 lines 1 comment Download

Messages

Total messages: 29 (19 generated)
Clemens Hammacher
3 years, 9 months ago (2017-02-27 16:18:52 UTC) #1
Clemens Hammacher
+kozyatinskiy for the inspector test. Or is there a better/easier way for a JS test ...
3 years, 9 months ago (2017-02-28 13:35:07 UTC) #8
kozy
bunch of inspector-test comments. https://codereview.chromium.org/2720813002/diff/1/test/inspector/debugger/wasm-imports.js File test/inspector/debugger/wasm-imports.js (right): https://codereview.chromium.org/2720813002/diff/1/test/inspector/debugger/wasm-imports.js#newcode59 test/inspector/debugger/wasm-imports.js:59: .then(() => Protocol.Debugger.setBreakpoint({ Just wondering, ...
3 years, 9 months ago (2017-02-28 16:47:02 UTC) #9
kozy
https://codereview.chromium.org/2720813002/diff/1/test/inspector/debugger/wasm-imports.js File test/inspector/debugger/wasm-imports.js (right): https://codereview.chromium.org/2720813002/diff/1/test/inspector/debugger/wasm-imports.js#newcode120 test/inspector/debugger/wasm-imports.js:120: evalWithUrl('new Error().stack', 'getStack') On 2017/02/28 16:47:01, kozy wrote: > ...
3 years, 9 months ago (2017-02-28 19:28:26 UTC) #10
Clemens Hammacher
Thanks a lot for the detailed comments, Alexey. All fixed, and it's truly beautiful now ...
3 years, 9 months ago (2017-03-02 14:02:35 UTC) #15
kozy
thanks! just FYI: since yesterday we decided that we can use async-await in tests, I'm ...
3 years, 9 months ago (2017-03-02 21:31:10 UTC) #19
titzer
On 2017/03/02 21:31:10, kozy wrote: > thanks! just FYI: since yesterday we decided that we ...
3 years, 9 months ago (2017-03-03 09:30:54 UTC) #20
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/2720813002/40001
3 years, 9 months ago (2017-03-03 12:36:34 UTC) #22
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/2720813002/40001
3 years, 9 months ago (2017-03-03 12:37:14 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 12:38:48 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/eb36a7dbcfaeca660da0c5bb67d58d235e6...

Powered by Google App Engine
This is Rietveld 408576698