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:
Roland Conybeare 2026-04-10 01:10:03 -04:00
commit 4fdaa64085
28 changed files with 58 additions and 61 deletions

View file

@ -185,12 +185,10 @@ namespace xo {
}
void
DList::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
DList::visit_gco_children(VisitReason reason, obj<AGCObjectVisitor> gc) noexcept
{
//scope log(XO_DEBUG(true));
gc.visit_child(&head_);
gc.visit_child(&rest_);
gc.visit_child(reason, &head_);
gc.visit_child(reason, &rest_);
}
} /*namespace scm*/
} /*namespace xo*/