Definition at line 38 of file program_visitor.cc.
◆ Worklist()
dart::Worklist::Worklist |
( |
Zone * |
zone | ) |
|
|
inlineexplicit |
Definition at line 40 of file program_visitor.cc.
41 : zone_(zone), first_(nullptr), last_(nullptr) {}
◆ Add()
void dart::Worklist::Add |
( |
const Object & |
value | ) |
|
|
inline |
Definition at line 45 of file program_visitor.cc.
45 {
46 auto element =
new (zone_) WorklistElement(zone_,
value);
47 if (first_ == nullptr) {
48 first_ = element;
50 } else {
53 }
54 last_ = element;
55 ASSERT(first_ !=
nullptr && last_ !=
nullptr);
56 }
void set_next(WorklistElement *elem)
◆ IsEmpty()
bool dart::Worklist::IsEmpty |
( |
| ) |
const |
|
inline |
◆ Remove()
Definition at line 58 of file program_visitor.cc.
58 {
60 WorklistElement*
result = first_;
61 first_ = first_->
next();
62 if (first_ == nullptr) {
63 last_ = nullptr;
64 }
66 }
WorklistElement * next() const
The documentation for this class was generated from the following file: