v8
9.4.146 (node 16.13.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_directory)
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_
include
v8-wasm-trap-handler-win.h
Generated on Fri Oct 29 2021 20:27:53 for v8 by
1.9.1