v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
JSVisitor Class Reference

#include <v8-cppgc.h>

Inheritance diagram for JSVisitor:
Collaboration diagram for JSVisitor:

Public Member Functions

 JSVisitor (cppgc::Visitor::Key key)
 
 ~JSVisitor () override=default
 
void Trace (const TracedReferenceBase &ref)
 
- Public Member Functions inherited from Visitor
 Visitor (Key)
 
virtual ~Visitor ()=default
 
template<typename T >
void Trace (const T *t)
 
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)
 
template<typename K , typename V >
void Trace (const EphemeronPair< K, V > &ephemeron_pair)
 
template<typename KeyType , typename ValueType >
void TraceEphemeron (const WeakMember< KeyType > &weak_member_key, const Member< ValueType > *member_value)
 
template<typename KeyType , typename ValueType >
void TraceEphemeron (const WeakMember< KeyType > &weak_member_key, const ValueType *value)
 
template<typename T >
void TraceStrongly (const WeakMember< T > &weak_member)
 
template<typename T >
void TraceWeakContainer (const T *object, WeakCallback callback, const void *data)
 
template<typename T >
void RegisterMovableReference (const T **slot)
 
virtual void RegisterWeakCallback (WeakCallback callback, const void *data)
 
virtual V8_WARN_UNUSED_RESULT bool DeferTraceToMutatorThreadIfConcurrent (const void *parameter, TraceCallback callback, size_t deferred_size)
 

Protected Member Functions

virtual void Visit (const TracedReferenceBase &ref)
 
- Protected Member Functions inherited from Visitor
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, const SourceLocation &)
 
virtual void VisitWeakRoot (const void *self, TraceDescriptor, WeakCallback, const void *weak_root, const SourceLocation &)
 
virtual void VisitEphemeron (const void *key, const void *value, TraceDescriptor value_desc)
 
virtual void VisitWeakContainer (const void *self, TraceDescriptor strong_desc, TraceDescriptor weak_desc, WeakCallback callback, const void *data)
 
virtual void HandleMovableReference (const void **)
 

Detailed Description

Definition at line 161 of file v8-cppgc.h.

Constructor & Destructor Documentation

◆ JSVisitor()

JSVisitor ( cppgc::Visitor::Key  key)
inlineexplicit

Definition at line 163 of file v8-cppgc.h.

◆ ~JSVisitor()

~JSVisitor ( )
overridedefault

Member Function Documentation

◆ Trace()

void Trace ( const TracedReferenceBase ref)
inline

Definition at line 166 of file v8-cppgc.h.

References TracedReferenceBase::IsEmptyThreadSafe(), and JSVisitor::Visit().

◆ Visit()

virtual void Visit ( const TracedReferenceBase ref)
inlineprotectedvirtual

Definition at line 174 of file v8-cppgc.h.

Referenced by JSVisitor::Trace().


The documentation for this class was generated from the following file: