v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
JSVisitor Class Reference

#include <v8-cppgc.h>

Inheritance diagram for JSVisitor:
Collaboration diagram for JSVisitor:

Public Member Functions

 JSVisitor (cppgc::Visitor::Key key)
 
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 K , typename V >
void TraceEphemeron (const WeakMember< K > &key, const V *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 127 of file v8-cppgc.h.

Constructor & Destructor Documentation

◆ JSVisitor()

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

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

References Visitor::Visitor().

Member Function Documentation

◆ Trace()

void Trace ( const TracedReferenceBase ref)
inline

◆ Visit()

virtual void Visit ( const TracedReferenceBase ref)
inlineprotectedvirtual

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

Referenced by JSVisitor::Trace().


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