• Eric Holk's avatar
    [wasm] enable StoreMem_offset_oob_i64 test with trap handlers · f56e2a02
    Eric Holk authored
    The first part of this change updates StoreMem_offset_oob_i64 to use one page of
    Wasm memory, rather than just a few bytes. Using less than a page was out of
    spec for Wasm anyway, so this is better.
    
    This required a small change in the test runner to set and clear the
    thread_in_wasm flag around Wasm calls. This was accomplished by a
    ThreadInWasmScope convenience class.
    
    The majority of the changes are because the cctest environment does not support
    runtime exceptions. In the code generator, where we used to throw a
    WasmMemOutOfBounds exception, we now need to call out to the test hook instead
    if runtime exceptions are not supported. This involved plumbing the
    runtime_exception_support flag down to the code generator. Rather than adding
    and shuffling around extra parameters everywhere, this CL packages the previous
    protected instruction list in a new WasmCompilationData object that now includes
    the runtime_exception_support flag as well.
    
    Bug: v8:5277
    Change-Id: Ic9c9e5a53a07a7773b58c0aee7c26bbd2ddf82f3
    Reviewed-on: https://chromium-review.googlesource.com/989017
    Commit-Queue: Eric Holk <eholk@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#52368}
    f56e2a02
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni 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 Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython 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.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind 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...