v8/src/trap-handler
Karl Schimpf 0d5de9ad9b [wasm] First step of refactoring trap handling to be per module.
The previous code assumed that trap handling was a global concept, defined
by function trap_handler::UseTrapHandler(). This CL does the first step
in changing the decision to be specifiable at a module level.

Therefore trap_handler::UseTrapHandler() is replaced by
trap_handler::IsTrapHandlerEnabled(), and communicates if compilation
supports the use of trap handlers (but still allowing the use of
bounds checking on memory accesses).

It then refactors the classes ModuleEnv and WasmCompiledModule to have
a field "use_trap_handler" that specifies if traps should be used for
the memory accesses in the module being compiled.

Bug: v8:7143
Change-Id: I9844842d5721c86c2dd55e911b42bf8b9922cf63
Reviewed-on: https://chromium-review.googlesource.com/802322
Commit-Queue: Eric Holk <eholk@chromium.org>
Reviewed-by: Ben Titzer <titzer@chromium.org>
Reviewed-by: Mircea Trofin <mtrofin@chromium.org>
Reviewed-by: Eric Holk <eholk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49915}
2017-12-07 01:00:55 +00:00
..
DEPS [wasm] Initial signal handler 2017-03-13 22:12:23 +00:00
handler-inside.cc [wasm] Move "thread in wasm" flag handling out of compiled code 2017-10-16 15:17:29 +00:00
handler-outside.cc Revert "Revert "[wasm] JIT using WasmCodeManager"" 2017-11-28 22:27:13 +00:00
handler-shared.cc Reland "Reland "[wasm] trap handlers: fall back on old signal handler"" 2017-10-11 20:49:45 +00:00
OWNERS Add eholk to Wasm-related OWNERS files 2017-08-10 18:58:00 +00:00
trap-handler-internal.h Reland "Reland "[wasm] trap handlers: fall back on old signal handler"" 2017-10-11 20:49:45 +00:00
trap-handler.h [wasm] First step of refactoring trap handling to be per module. 2017-12-07 01:00:55 +00:00