v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
handler-inside-win.h
Go to the documentation of this file.
1// Copyright 2018 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_TRAP_HANDLER_HANDLER_INSIDE_WIN_H_
6#define V8_TRAP_HANDLER_HANDLER_INSIDE_WIN_H_
7
8#include <windows.h>
9
10#include "src/trap-handler/trap-handler.h" // For TH_DISABLE_ASAN.
11
12namespace v8 {
13namespace internal {
14namespace trap_handler {
15
16LONG WINAPI HandleWasmTrap(EXCEPTION_POINTERS* exception);
17
18// On Windows, asan installs its own exception handler which maps shadow
19// memory. Since our exception handler may be executed before the asan exception
20// handler, we have to make sure that asan shadow memory is not accessed here.
21TH_DISABLE_ASAN bool TryHandleWasmTrap(EXCEPTION_POINTERS* exception);
22
23} // namespace trap_handler
24} // namespace internal
25} // namespace v8
26
27#endif // V8_TRAP_HANDLER_HANDLER_INSIDE_WIN_H_
TH_DISABLE_ASAN bool TryHandleWasmTrap(EXCEPTION_POINTERS *exception)
LONG WINAPI HandleWasmTrap(EXCEPTION_POINTERS *exception)
#define TH_DISABLE_ASAN
long LONG
#define WINAPI