v8 12.4.254 (node 22.4.1)
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 Member< T > &member)
 
template<typename T >
void Trace (const WeakMember< T > &weak_member)
 
template<typename T >
void TraceMultiple (const subtle::UncompressedMember< T > *start, size_t len)
 
template<typename T , std::enable_if_t<!std::is_same_v< Member< T >, subtle::UncompressedMember< T > > > * = nullptr>
void TraceMultiple (const Member< T > *start, size_t len)
 
template<typename T >
void Trace (const T &object)
 
template<typename T >
void TraceMultiple (const T *start, size_t len)
 
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 TraceStrongContainer (const T *object)
 
template<typename T >
void TraceWeakContainer (const T *object, WeakCallback callback, const void *callback_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 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 **)
 
virtual void VisitMultipleUncompressedMember (const void *start, size_t len, TraceDescriptorCallback get_trace_descriptor)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ JSVisitor()

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

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

◆ ~JSVisitor()

~JSVisitor ( )
overridedefault

Member Function Documentation

◆ Trace()

void Trace ( const TracedReferenceBase ref)
inline

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

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

◆ Visit()

virtual void Visit ( const TracedReferenceBase ref)
inlineprotectedvirtual

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

Referenced by JSVisitor::Trace().


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