• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/base/macros.h"
11 
12 namespace v8 {
13 namespace internal {
14 namespace trap_handler {
15 
16 LONG 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.
21 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_
28