v8/test
Andreas Haas 3d2bc5d041 Reland: [wasm] Add more unit tests for trap handler
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/1351024
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57947}
2018-11-29 16:33:10 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest Reland: [wasm] Add more unit tests for trap handler 2018-11-29 16:33:10 +00:00
common Reland: [wasm] Add more unit tests for trap handler 2018-11-29 16:33:10 +00:00
debugger [test] Skip slow tests on arm simulators 2018-10-17 08:52:47 +00:00
fuzzer [wasm][fuzzer] Output table bounds and initializers 2018-11-26 15:37:00 +00:00
inspector inspector: removed deprecated Debugger.scheduleStepIntoAsync 2018-11-29 01:34:04 +00:00
intl Revert "[Intl] Handle invalid values in locale" 2018-11-28 07:20:20 +00:00
js-perf-test [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [parser] Cleanup pattern classification 2018-11-23 11:33:21 +00:00
mjsunit [wasm] Fix exception section code for spec compliance. 2018-11-29 16:21:58 +00:00
mkgrokdump [ubsan] Port Map to the new design 2018-11-13 06:59:12 +00:00
mozilla [runtime] Reduce spread/apply call max arguments 2018-11-22 12:08:17 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 Revert "[Intl] Handle invalid values in locale" 2018-11-28 07:20:20 +00:00
torque [torque] Simplify and cleanup Cast and UnsafeCast 2018-11-27 06:50:30 +00:00
unittests Reland: [wasm] Add more unit tests for trap handler 2018-11-29 16:33:10 +00:00
wasm-js [wasm] fix testharness - unreached_func 2018-11-27 22:37:56 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-11-28 11:42:27 +00:00
webkit [runtime] Reduce spread/apply call max arguments 2018-11-22 12:08:17 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00