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 #
Depends on Patchset: Messages
Total messages: 12 (5 generated)
|