Definition at line 80 of file program_visitor.cc.
◆ ProgramWalker()
Definition at line 82 of file program_visitor.cc.
83 : heap_(heap),
84 visitor_(visitor),
85 worklist_(zone),
◆ ~ProgramWalker()
dart::ProgramWalker::~ProgramWalker |
( |
| ) |
|
|
inline |
◆ AddToWorklist()
void dart::ProgramWalker::AddToWorklist |
( |
const Object & |
object | ) |
|
|
inline |
Definition at line 101 of file program_visitor.cc.
101 {
102
103 if (
object.
IsNull() ||
object.
IsSmi() ||
object.InVMIsolateHeap())
return;
104
107 if (object.IsClass() ||
110 worklist_.
Add(
object);
111 }
112 }
virtual bool IsCodeVisitor() const
virtual bool IsFunctionVisitor() const
intptr_t GetObjectId(ObjectPtr raw_obj) const
void SetObjectId(ObjectPtr raw_obj, intptr_t object_id)
void Add(const Object &value)
DART_EXPORT bool IsNull(Dart_Handle object)
◆ VisitWorklist()
void dart::ProgramWalker::VisitWorklist |
( |
| ) |
|
|
inline |
Definition at line 114 of file program_visitor.cc.
114 {
116 worklist_entry_ = worklist_.
Remove();
117 if (worklist_entry_.IsClass()) {
118 VisitClass(Class::Cast(worklist_entry_));
119 } else if (worklist_entry_.IsFunction()) {
120 VisitFunction(Function::Cast(worklist_entry_));
121 } else if (worklist_entry_.IsCode()) {
122 VisitCode(Code::Cast(worklist_entry_));
123 } else {
125 }
126 }
127 }
virtual const char * ToCString() const
The documentation for this class was generated from the following file: