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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
lsan.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
// LeakSanitizer support.
6
7
#ifndef V8_LSAN_H_
8
#define V8_LSAN_H_
9
10
#include "src/base/macros.h"
11
#include "src/globals.h"
12
13
// There is no compile time flag for LSan, to enable this whenever ASan is
14
// enabled. Note that LSan can be used as part of ASan with 'detect_leaks=1'.
15
// On windows, LSan is not implemented yet, so disable it there.
16
#if defined(V8_USE_ADDRESS_SANITIZER) && !defined(V8_OS_WIN)
17
18
#include <sanitizer/lsan_interface.h>
19
20
#define LSAN_IGNORE_OBJECT(ptr) __lsan_ignore_object(ptr)
21
22
#else // defined(V8_USE_ADDRESS_SANITIZER) && !defined(V8_OS_WIN)
23
24
#define LSAN_IGNORE_OBJECT(ptr) \
25
static_assert(std::is_pointer<decltype(ptr)>::value || \
26
std::is_same<v8::internal::Address, decltype(ptr)>::value, \
27
"static type violation")
28
29
#endif // defined(V8_USE_ADDRESS_SANITIZER) && !defined(V8_OS_WIN)
30
31
#endif // V8_LSAN_H_
v8
src
lsan.h
Generated on Tue Dec 25 2018 14:39:07 by
1.8.14