v8/test
Eric Holk b984b70c3a [wasm] Fall back on bounds checks when guarded memory unavailable
This CL adds the simplest version of a trap handler fallback. At
instantiation time, we check whether the module was compiled to use
trap handlers and the memory is guarded. If the memory is not guarded
but the module is supposed to use trap handlers, we recompile the
module with bounds checks so that we can use an unguarded memory.

The compiled module is replaced with a bounds checking version, meaning
future instances from this module will also use bounds checks.

Some likely desirable features that are current missing but can be
added future CLs include:
* Disabling trap handler mode entirely.
* Recompiling all old instances so that trap handler and bounds checked
  code does not coexist in the same process.

Bug: v8:7143

Change-Id: I161fc0d544133b07dc4a93cc6af813369aaf3efe
Reviewed-on: https://chromium-review.googlesource.com/1018182
Commit-Queue: Eric Holk <eholk@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53566}
2018-06-07 01:29:53 +00:00
..
benchmarks Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
cctest [api] Switch from SetBuildEmbedderGraphCallback to AddBuildEmbedderGraphCallback 2018-06-06 09:46:57 +00:00
common [wasm] Make wasm::ValueType independent of the MachineRepresentation 2018-05-07 11:54:56 +00:00
debugger [sfi] Remove SFI function literal id field 2018-06-05 13:45:11 +00:00
fuzzer [parsing] Remove most GetIsolate calls 2018-06-05 08:54:58 +00:00
inspector [inspector] decouple debugger delegate and async stacks delegate 2018-06-05 17:39:22 +00:00
intl Prevent throwing exceptions more than once during Locale construction. 2018-06-01 18:18:54 +00:00
js-perf-test [tests] Fix JSTests 2018-06-05 11:38:43 +00:00
memory Reland "[tools] Add benchmark owners to the config" 2018-05-16 13:53:49 +00:00
message Reland "[array] Implement Array.p.sort in Torque" 2018-06-05 08:33:18 +00:00
mjsunit [wasm] Fall back on bounds checks when guarded memory unavailable 2018-06-07 01:29:53 +00:00
mkgrokdump Re-enable embedded builtins 2018-06-06 08:47:57 +00:00
mozilla [test] Reverse sense of wasm_traps variant 2018-05-08 17:49:14 +00:00
preparser Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00
test262 Revert "[array] Use random middle element to determine pivot during sorting" 2018-06-06 08:16:48 +00:00
torque [torque] Fix int32 literals 2018-06-05 12:33:23 +00:00
unittests Fix ThreadTicks.ThreadNow on systems with low resolution timers 2018-06-06 11:47:41 +00:00
wasm-spec-tests [wasm] Update spec tests 2018-05-22 09:47:41 +00:00
webkit [test] Skip slow tests 2018-05-23 14:14:34 +00:00
BUILD.gn Reland "[build] Remove legacy isolate configurations" 2018-03-28 12:36:55 +00:00