xo-interpreter2 stack: + reason arg to visit_gco_children()
Helps streamline DX1Collector in xo-gc/. Want both forward and verify entry points for the same representation.
This commit is contained in:
parent
a312b5f20c
commit
895e8d7a34
36 changed files with 99 additions and 92 deletions
|
|
@ -972,18 +972,19 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
DVirtualSchematikaMachine::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
DVirtualSchematikaMachine::visit_gco_children(VisitReason reason,
|
||||
obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
reader_.visit_gco_children(gc);
|
||||
reader_.visit_gco_children(reason, gc);
|
||||
|
||||
gc.visit_child(&stack_);
|
||||
gc.visit_poly_child(&expr_);
|
||||
gc.visit_child(&global_env_);
|
||||
gc.visit_child(&local_env_);
|
||||
gc.visit_child(&fn_);
|
||||
gc.visit_child(&args_);
|
||||
gc.visit_child(reason, &stack_);
|
||||
gc.visit_poly_child(reason, &expr_);
|
||||
gc.visit_child(reason, &global_env_);
|
||||
gc.visit_child(reason, &local_env_);
|
||||
gc.visit_child(reason, &fn_);
|
||||
gc.visit_child(reason, &args_);
|
||||
if (value_.is_value()) {
|
||||
gc.visit_child(const_cast<obj<AGCObject> *>(&value_.value_ref()));
|
||||
gc.visit_child(reason, const_cast<obj<AGCObject> *>(&value_.value_ref()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue