v8  8.1.307(node14.1.0)
V8 is Google's open source JavaScript engine
v8-wasm-trap-handler-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_WASM_TRAP_HANDLER_WIN_H_
6 #define V8_WASM_TRAP_HANDLER_WIN_H_
7 
8 #include <windows.h>
9 
10 #include "v8config.h" // NOLINT(build/include)
11 
12 namespace v8 {
13 /**
14  * This function determines whether a memory access violation has been an
15  * out-of-bounds memory access in WebAssembly. If so, it will modify the
16  * exception parameter and add a return address where the execution can continue
17  * after the exception handling, and return true. Otherwise the return value
18  * will be false.
19  *
20  * The parameter to this function corresponds to the one passed to a Windows
21  * vectored exception handler. Use this function only on Windows.
22  *
23  * \param exception An EXCEPTION_POINTERS* as provided to the exception handler.
24  */
25 V8_EXPORT bool TryHandleWebAssemblyTrapWindows(EXCEPTION_POINTERS* exception);
26 
27 } // namespace v8
28 #endif // V8_WASM_TRAP_HANDLER_WIN_H_
#define V8_EXPORT
Definition: v8config.h:458
V8_EXPORT bool TryHandleWebAssemblyTrapWindows(EXCEPTION_POINTERS *exception)
Definition: libplatform.h:15