refactor: + narrower interface for gc pointer forwarding
add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
parent
57688a826a
commit
801bb9e39d
266 changed files with 952 additions and 947 deletions
|
|
@ -90,14 +90,14 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
ParserStack::forward_children(obj<ACollector> gc) noexcept
|
||||
ParserStack::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
|
||||
for (ParserStack * target = this; target; target = target->parent_) {
|
||||
// ParserStack::ckp: skip, POD
|
||||
|
||||
if (target->ssm_)
|
||||
target->ssm_.forward_children(gc);
|
||||
target->ssm_.visit_gco_children(gc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue