v8/test/cctest/wasm
ahaas 79570f87a1 [wasm] Do not use setjmp/longjmp in cctests.
The use of setjmp/longjmp makes the cctests in test-run-wasm and
test-run-wasm-64 flaky on Windows, and I think that it is better not
to use it. With this CL I replace it as follows:

Similar to the setjmp/longjmp implementation we still call a C
function when a trap happens. However, instead of calling longjmp in
this C function we just set a flag which indicates that a trap
happened and then return. After we return from the C function we leave
the frame of the current wasm function and return with a RET
instruction. At the end of a test the wasm test runner checks the flag
to see if a trap happened.

Please take a special look at the LeaveFrame function on arm64.

R=titzer@chromium.org, clemensh@chromium.org, v8-arm-ports@googlegroups.com
CC=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2685583003
Cr-Commit-Position: refs/heads/master@{#43095}
2017-02-10 13:11:40 +00:00
..
OWNERS Make clemensh owner (wasm, asmjs and general) 2017-01-13 10:20:44 +00:00
test-managed.cc [wasm] Add a Managed<T> wrapper class for allocating C++ classes that are deleted when the wrapper is garbage collected. 2016-10-17 09:28:40 +00:00
test-run-wasm-64.cc [wasm] Do not use setjmp/longjmp in cctests. 2017-02-10 13:11:40 +00:00
test-run-wasm-asmjs.cc [wasm] Make WasmRunner the central test structure 2016-12-16 10:13:11 +00:00
test-run-wasm-interpreter.cc [wasm] Refactor the non-determinism detection in the interpreter. 2017-02-03 09:51:04 +00:00
test-run-wasm-js.cc [wasm] Rename wasm::LocalType to wasm::ValueType and kAst* to kWasm* 2016-12-21 13:43:00 +00:00
test-run-wasm-module.cc [wasm] Check segment bounds beforehand 2017-01-23 17:21:39 +00:00
test-run-wasm-relocation.cc [wasm] Make WasmRunner the central test structure 2016-12-16 10:13:11 +00:00
test-run-wasm-simd-lowering.cc [wasm] Implement polymorphic checking, matching the reference interpreter. 2017-02-02 23:06:21 +00:00
test-run-wasm-simd.cc [Turbofan] Add more integer SIMD operations for ARM. 2017-02-07 17:33:37 +00:00
test-run-wasm.cc [wasm] Do not use setjmp/longjmp in cctests. 2017-02-10 13:11:40 +00:00
test-wasm-breakpoints.cc [wasm] Implement polymorphic checking, matching the reference interpreter. 2017-02-02 23:06:21 +00:00
test-wasm-stack.cc Assert that context creation doesn't throw 2017-01-17 13:01:03 +00:00
test-wasm-trap-position.cc [wasm] Fix and tighten memory validation 2017-01-18 12:07:57 +00:00
wasm-run-utils.h [wasm] Do not use setjmp/longjmp in cctests. 2017-02-10 13:11:40 +00:00