V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
g
i
k
n
p
r
s
t
Functions
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
a
c
d
e
h
k
l
n
o
s
Typedefs
Enumerations
+
Files
File List
Examples
▼
V8 API Reference Guide
The V8 public C++ API
▶
Namespaces
▶
Classes
▼
Files
▶
File List
▶
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
asan.h
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
// AddressSanitizer support.
6
7
#ifndef V8_ASAN_H_
8
#define V8_ASAN_H_
9
10
#include "src/base/macros.h"
11
#include "src/globals.h"
12
13
#ifdef V8_USE_ADDRESS_SANITIZER
14
15
#include <sanitizer/asan_interface.h>
16
17
#else // !V8_USE_ADDRESS_SANITIZER
18
19
#define ASAN_POISON_MEMORY_REGION(start, size) \
20
static_assert( \
21
(std::is_pointer<decltype(start)>::value || \
22
std::is_same<v8::internal::Address, decltype(start)>::value) && \
23
std::is_convertible<decltype(size), size_t>::value, \
24
"static type violation")
25
#define ASAN_UNPOISON_MEMORY_REGION(start, size) \
26
ASAN_POISON_MEMORY_REGION(start, size)
27
28
#endif // V8_USE_ADDRESS_SANITIZER
29
30
#endif // V8_ASAN_H_
v8
src
asan.h
Generated on Tue Dec 25 2018 14:38:12 by
1.8.14