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 ec639ebb4b
276 changed files with 772 additions and 596 deletions

View file

@ -90,14 +90,15 @@ namespace xo {
}
void
ParserStack::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
ParserStack::visit_gco_children(VisitReason reason,
obj<AGCObjectVisitor> gc) noexcept
{
for (ParserStack * target = this; target; target = target->parent_) {
// ParserStack::ckp: skip, POD
if (target->ssm_)
target->ssm_.visit_gco_children(gc);
target->ssm_.visit_gco_children(reason, gc);
}
}