v8
12.4.254 (node 22.4.1)
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
v
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
v
w
Enumerations
a
b
c
d
e
f
g
h
i
m
n
o
p
r
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
ephemeron-pair.h
Go to the documentation of this file.
1
// Copyright 2020 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_EPHEMERON_PAIR_H_
6
#define INCLUDE_CPPGC_EPHEMERON_PAIR_H_
7
8
#include "
cppgc/liveness-broker.h
"
9
#include "
cppgc/member.h
"
10
11
namespace
cppgc
{
12
17
template
<
typename
K,
typename
V>
18
struct
EphemeronPair
{
19
EphemeronPair
(K* k,
V
* v) :
key
(k),
value
(v) {}
20
WeakMember<K>
key
;
21
Member<V>
value
;
22
23
void
ClearValueIfKeyIsDead
(
const
LivenessBroker
& broker) {
24
if
(!broker.
IsHeapObjectAlive
(
key
))
value
=
nullptr
;
25
}
26
};
27
28
}
// namespace cppgc
29
30
#endif
// INCLUDE_CPPGC_EPHEMERON_PAIR_H_
cppgc::LivenessBroker
Definition
liveness-broker.h:44
cppgc::LivenessBroker::IsHeapObjectAlive
bool IsHeapObjectAlive(const T *object) const
Definition
liveness-broker.h:47
cppgc::internal::BasicMember
Definition
member.h:78
liveness-broker.h
member.h
cppgc
Definition
allocation.h:38
cppgc::EphemeronPair
Definition
ephemeron-pair.h:18
cppgc::EphemeronPair::key
WeakMember< K > key
Definition
ephemeron-pair.h:20
cppgc::EphemeronPair::ClearValueIfKeyIsDead
void ClearValueIfKeyIsDead(const LivenessBroker &broker)
Definition
ephemeron-pair.h:23
cppgc::EphemeronPair::value
Member< V > value
Definition
ephemeron-pair.h:21
cppgc::EphemeronPair::EphemeronPair
EphemeronPair(K *k, V *v)
Definition
ephemeron-pair.h:19
V
#define V(Name)
include
cppgc
ephemeron-pair.h
Generated on Thu Jul 11 2024 21:30:41 for v8 by
1.9.7