• Andreas Haas's avatar
    Reland: [wasm] Add more unit tests for trap handler · 3d2bc5d0
    Andreas Haas authored
    The problem were missing V8_EXPORT_PRIVATE and V8_EXPORT.
    
    The unittests test if the trap handler only handles those traps it
    is supposed to handle:
    * Only handle traps when the thread-in-wasm flag is set.
    * Only handle traps of the right type, i.e. memory access violations.
    * Only handle traps at recorded instructions.
    
    The tests also test the consistency of the thread-in-wasm flag. I made
    one change in the trap handler where that consistency could be
    violated.
    
    All tests are executed with the default trap handler provided by V8,
    and with the trap handler callback installed in a test signal/exception
    handler.
    
    Patchset 1 is the original CL.
    
    R=mstarzinger@chromium.org
    
    Change-Id: I172d94f24cdba4c3a1f7f344825b059dbb59da79
    Reviewed-on: https://chromium-review.googlesource.com/c/1351024Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57947}
    3d2bc5d0
Name
Last commit
Last update
..
assembler-arm64-inl.h Loading commit data...
assembler-arm64.cc Loading commit data...
assembler-arm64.h Loading commit data...
code-stubs-arm64.cc Loading commit data...
code-stubs-arm64.h Loading commit data...
codegen-arm64.cc Loading commit data...
constants-arm64.h Loading commit data...
cpu-arm64.cc Loading commit data...
decoder-arm64-inl.h Loading commit data...
decoder-arm64.cc Loading commit data...
decoder-arm64.h Loading commit data...
deoptimizer-arm64.cc Loading commit data...
disasm-arm64.cc Loading commit data...
disasm-arm64.h Loading commit data...
eh-frame-arm64.cc Loading commit data...
frame-constants-arm64.cc Loading commit data...
frame-constants-arm64.h Loading commit data...
instructions-arm64-constants.cc Loading commit data...
instructions-arm64.cc Loading commit data...
instructions-arm64.h Loading commit data...
instrument-arm64.cc Loading commit data...
instrument-arm64.h Loading commit data...
interface-descriptors-arm64.cc Loading commit data...
macro-assembler-arm64-inl.h Loading commit data...
macro-assembler-arm64.cc Loading commit data...
macro-assembler-arm64.h Loading commit data...
simulator-arm64.cc Loading commit data...
simulator-arm64.h Loading commit data...
simulator-logic-arm64.cc Loading commit data...
utils-arm64.cc Loading commit data...
utils-arm64.h Loading commit data...