![]() |
v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
|
#include <ephemeron-pair.h>

Public Member Functions | |
| EphemeronPair (K *k, V *v) | |
| void | ClearValueIfKeyIsDead (const LivenessBroker &broker) |
Data Fields | |
| WeakMember< K > | key |
| Member< V > | value |
An ephemeron pair is used to conditionally retain an object. The value will be kept alive only if the key is alive.
Definition at line 18 of file ephemeron-pair.h.
|
inline |
Definition at line 19 of file ephemeron-pair.h.
|
inline |
Definition at line 23 of file ephemeron-pair.h.
References LivenessBroker::IsHeapObjectAlive(), EphemeronPair< K, V >::key, and EphemeronPair< K, V >::value.
| WeakMember<K> key |
Definition at line 20 of file ephemeron-pair.h.
Referenced by EphemeronPair< K, V >::ClearValueIfKeyIsDead(), and Visitor::Trace().
Definition at line 21 of file ephemeron-pair.h.
Referenced by EphemeronPair< K, V >::ClearValueIfKeyIsDead(), and Visitor::Trace().