v8
11.3.244 (node 20.3.0)
V8 is Google's open source JavaScript engine
Toggle main menu visibility
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
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
w
Enumerations
a
b
c
e
g
h
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
f
g
i
m
n
p
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
h
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 Symbols
:
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
e
m
p
s
t
v
Macros
a
c
d
e
m
p
s
t
v
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
sentinel-pointer.h
Go to the documentation of this file.
1
// Copyright 2021 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 INCLUDE_CPPGC_SENTINEL_POINTER_H_
6
#define INCLUDE_CPPGC_SENTINEL_POINTER_H_
7
8
#include <cstdint>
9
10
namespace
cppgc
{
11
namespace
internal {
12
13
// Special tag type used to denote some sentinel member. The semantics of the
14
// sentinel is defined by the embedder.
15
struct
SentinelPointer
{
16
static
constexpr
intptr_t
kSentinelValue
= 0b10;
17
template
<
typename
T>
18
operator
T*()
const
{
19
return
reinterpret_cast<
T*
>
(
kSentinelValue
);
20
}
21
// Hidden friends.
22
friend
bool
operator==
(
SentinelPointer
,
SentinelPointer
) {
return
true
; }
23
friend
bool
operator!=
(
SentinelPointer
,
SentinelPointer
) {
return
false
; }
24
};
25
26
}
// namespace internal
27
28
constexpr
internal::SentinelPointer
kSentinelPointer
;
29
30
}
// namespace cppgc
31
32
#endif
// INCLUDE_CPPGC_SENTINEL_POINTER_H_
cppgc
Definition
allocation.h:38
cppgc::kSentinelPointer
constexpr internal::SentinelPointer kSentinelPointer
Definition
sentinel-pointer.h:28
cppgc::internal::SentinelPointer
Definition
sentinel-pointer.h:15
cppgc::internal::SentinelPointer::operator==
friend bool operator==(SentinelPointer, SentinelPointer)
Definition
sentinel-pointer.h:22
cppgc::internal::SentinelPointer::kSentinelValue
static constexpr intptr_t kSentinelValue
Definition
sentinel-pointer.h:16
cppgc::internal::SentinelPointer::operator!=
friend bool operator!=(SentinelPointer, SentinelPointer)
Definition
sentinel-pointer.h:23
include
cppgc
sentinel-pointer.h
Generated on Sat Jun 10 2023 16:58:26 for v8 by
1.9.7