• clemensh's avatar
    [wasm] Pass byte position for trapping instructions · bf1797b1
    clemensh authored
    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
    
    Review-Url: https://codereview.chromium.org/1915123006
    Cr-Commit-Position: refs/heads/master@{#35925}
    bf1797b1
Name
Last commit
Last update
benchmarks Loading commit data...
docs Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...