Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::snapshot_analyzer::FieldVisitor Class Reference
Inheritance diagram for dart::snapshot_analyzer::FieldVisitor:
dart::ObjectPointerVisitor

Public Member Functions

 FieldVisitor (IsolateGroup *isolate_group)
 
void init (std::function< void(ObjectPtr)> *fun)
 
void VisitPointers (ObjectPtr *first, ObjectPtr *last) override
 
- Public Member Functions inherited from dart::ObjectPointerVisitor
 ObjectPointerVisitor (IsolateGroup *isolate_group)
 
virtual ~ObjectPointerVisitor ()
 
IsolateGroupisolate_group () const
 
virtual void VisitTypedDataViewPointers (TypedDataViewPtr view, CompressedObjectPtr *first, CompressedObjectPtr *last)
 
virtual void VisitPointers (ObjectPtr *first, ObjectPtr *last)=0
 
void VisitCompressedPointers (uword heap_base, CompressedObjectPtr *first, CompressedObjectPtr *last)
 
void VisitPointers (ObjectPtr *p, intptr_t len)
 
void VisitPointer (ObjectPtr *p)
 
const char * gc_root_type () const
 
void set_gc_root_type (const char *gc_root_type)
 
void clear_gc_root_type ()
 
virtual bool visit_weak_persistent_handles () const
 
virtual bool trace_values_through_fields () const
 
const ClassTableclass_table () const
 
virtual bool CanVisitSuspendStatePointers (SuspendStatePtr suspend_state)
 

Detailed Description

Definition at line 23 of file analyze_snapshot_api_impl.cc.

Constructor & Destructor Documentation

◆ FieldVisitor()

dart::snapshot_analyzer::FieldVisitor::FieldVisitor ( IsolateGroup isolate_group)
inlineexplicit

Definition at line 25 of file analyze_snapshot_api_impl.cc.

IsolateGroup * isolate_group() const
Definition: visitor.h:25
ObjectPointerVisitor(IsolateGroup *isolate_group)
Definition: visitor.cc:11

Member Function Documentation

◆ init()

void dart::snapshot_analyzer::FieldVisitor::init ( std::function< void(ObjectPtr)> *  fun)
inline

Definition at line 28 of file analyze_snapshot_api_impl.cc.

28{ callback_ = fun; }

◆ VisitPointers()

void dart::snapshot_analyzer::FieldVisitor::VisitPointers ( ObjectPtr first,
ObjectPtr last 
)
inlineoverridevirtual

Implements dart::ObjectPointerVisitor.

Definition at line 30 of file analyze_snapshot_api_impl.cc.

30 {
31 for (ObjectPtr* current = first; current <= last; current++) {
32 (*callback_)(*current);
33 }
34 }

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