diff options
Diffstat (limited to 'deps/v8/src/trap-handler/trap-handler.h')
-rw-r--r-- | deps/v8/src/trap-handler/trap-handler.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/deps/v8/src/trap-handler/trap-handler.h b/deps/v8/src/trap-handler/trap-handler.h index c25de9c1e9..0e9dbf248c 100644 --- a/deps/v8/src/trap-handler/trap-handler.h +++ b/deps/v8/src/trap-handler/trap-handler.h @@ -23,9 +23,9 @@ namespace trap_handler { // TODO(eholk): Support trap handlers on other platforms. #if V8_TARGET_ARCH_X64 && V8_OS_LINUX && !V8_OS_ANDROID -#define V8_TRAP_HANDLER_SUPPORTED 1 +#define V8_TRAP_HANDLER_SUPPORTED true #else -#define V8_TRAP_HANDLER_SUPPORTED 0 +#define V8_TRAP_HANDLER_SUPPORTED false #endif struct ProtectedInstructionData { @@ -100,12 +100,6 @@ inline void ClearThreadInWasm() { } } -class ThreadInWasmScope { - public: - ThreadInWasmScope() { SetThreadInWasm(); } - ~ThreadInWasmScope() { ClearThreadInWasm(); } -}; - bool RegisterDefaultTrapHandler(); V8_EXPORT_PRIVATE void RestoreOriginalSignalHandler(); |