v8
8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
|
#include <visitor.h>
Data Structures | |
class | Key |
Public Member Functions | |
Visitor (Key) | |
virtual | ~Visitor ()=default |
template<typename T > | |
void | Trace (const Member< T > &member) |
template<typename T > | |
void | Trace (const WeakMember< T > &weak_member) |
template<typename T > | |
void | Trace (const T &object) |
template<typename T , void(T::*)(const LivenessBroker &) method> | |
void | RegisterWeakCallbackMethod (const T *object) |
virtual void | RegisterWeakCallback (WeakCallback callback, const void *data) |
Protected Member Functions | |
virtual void | Visit (const void *self, TraceDescriptor) |
virtual void | VisitWeak (const void *self, TraceDescriptor, WeakCallback, const void *weak_member) |
virtual void | VisitRoot (const void *, TraceDescriptor) |
virtual void | VisitWeakRoot (const void *self, TraceDescriptor, WeakCallback, const void *weak_root) |
Friends | |
template<typename T , typename WeaknessPolicy , typename LocationPolicy , typename CheckingPolicy > | |
class | internal::BasicPersistent |
class | internal::ConservativeTracingVisitor |
class | internal::VisitorBase |
Visitor passed to trace methods. All managed pointers must have called the Visitor's trace method on them.
Definition at line 55 of file visitor.h.
Referenced by JSVisitor::JSVisitor().
|
virtualdefault |
|
inlinevirtual |
Registers a weak callback that is invoked during garbage collection.
callback | to be invoked. |
data | custom data that is passed to the callback. |
Definition at line 130 of file visitor.h.
Referenced by Visitor::RegisterWeakCallbackMethod().
|
inline |
Registers a weak callback method on the object of type T. See LivenessBroker for an usage example.
object | of type T specifying a weak callback method. |
Definition at line 120 of file visitor.h.
References Visitor::RegisterWeakCallback().
|
inline |
Trace method for Member.
member | Member reference retaining an object. |
Definition at line 65 of file visitor.h.
References cppgc::kSentinelPointer.
|
inline |
|
inline |
Trace method for WeakMember.
weak_member | WeakMember reference weakly retaining an object. |
Definition at line 77 of file visitor.h.
References Visitor::VisitWeak().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Definition at line 134 of file visitor.h.
Referenced by Visitor::Trace().
|
inlineprotectedvirtual |
|
friend |
Definition at line 206 of file visitor.h.
Referenced by BasicPersistent< T, WeaknessPolicy, LocationPolicy, CheckingPolicy >::BasicPersistent().