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

Issue 1915123006: [wasm] Pass byte position for trapping instructions (Closed)

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

Description

[wasm] Pass byte position for trapping instructions During ast decoding and turbofan graph construction, we explicitely pass the byte offset for all instructions which potentially trap. The byte offset is finally passed to the runtime function which throws the actual error, but it is not used there yet. The WasmGraphBuilder::Binop and Unop methods have a default value of -1 for the position, which allows for more compact code for all the functions which assemble bigger snippets from the primitive operations. Whenever the position is actually used for generating a trap, we check that it is not negative. R=titzer@chromium.org Committed: https://crrev.com/bf1797b1d074da7fdd571e7604c33f8466d585ed Cr-Commit-Position: refs/heads/master@{#35925}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address titzer's comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -197 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 7 chunks +42 lines, -33 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 44 chunks +185 lines, -139 lines 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 11 chunks +19 lines, -21 lines 0 comments Download
M src/wasm/wasm-opcodes.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (5 generated)
Clemens Hammacher
4 years, 7 months ago (2016-04-27 17:13:14 UTC) #1
titzer
https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc#newcode200 src/compiler/wasm-compiler.cc:200: // Create trap code for the first time this ...
4 years, 7 months ago (2016-04-28 11:27:00 UTC) #2
Clemens Hammacher
https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc#newcode200 src/compiler/wasm-compiler.cc:200: // Create trap code for the first time this ...
4 years, 7 months ago (2016-04-28 12:43:28 UTC) #5
titzer
On 2016/04/28 12:43:28, Clemens Hammacher wrote: > https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc > File src/compiler/wasm-compiler.cc (right): > > https://codereview.chromium.org/1915123006/diff/1/src/compiler/wasm-compiler.cc#newcode200 ...
4 years, 7 months ago (2016-04-28 12:57:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915123006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915123006/40001
4 years, 7 months ago (2016-05-02 08:21:38 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-02 08:47:09 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 08:48:32 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bf1797b1d074da7fdd571e7604c33f8466d585ed
Cr-Commit-Position: refs/heads/master@{#35925}

Powered by Google App Engine
This is Rietveld 408576698