v8
10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
e
f
g
i
j
m
n
o
p
r
s
t
u
v
Variables
d
f
g
i
k
m
t
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
c
e
g
i
j
k
l
m
n
p
r
s
t
w
Enumerator
a
b
c
d
e
g
i
j
k
n
o
p
r
s
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
i
m
n
p
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
m
n
o
p
s
t
u
v
w
Enumerator
b
c
d
e
h
j
k
n
o
p
r
s
t
u
w
Related Functions
:
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
a
c
d
m
p
s
t
v
Macros
a
c
d
m
p
s
t
v
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
v8-wasm-trap-handler-posix.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_POSIX_H_
6
#
define
V8_WASM_TRAP_HANDLER_POSIX_H_
7
8
#
include
<
signal
.
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 context
16
* parameter and add a return address where the execution can continue after the
17
* signal handling, and return true. Otherwise, false will be returned.
18
*
19
* The parameters to this function correspond to those passed to a Posix signal
20
* handler. Use this function only on Linux and Mac.
21
*
22
* \param sig_code The signal code, e.g. SIGSEGV.
23
* \param info A pointer to the siginfo_t struct provided to the signal handler.
24
* \param context A pointer to a ucontext_t struct provided to the signal
25
* handler.
26
*/
27
V8_EXPORT
bool
TryHandleWebAssemblyTrapPosix
(
int
sig_code, siginfo_t* info,
28
void
* context);
29
30
}
// namespace v8
31
#
endif
// V8_WASM_TRAP_HANDLER_POSIX_H_
include
v8-wasm-trap-handler-posix.h
Generated on Tue May 24 2022 19:29:04 for v8 by
1.9.1