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
bc248fec20
commit
4fdaa64085
28 changed files with 58 additions and 61 deletions
|
|
@ -198,16 +198,12 @@ namespace xo {
|
|||
}
|
||||
|
||||
void
|
||||
DArray::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
DArray::visit_gco_children(VisitReason reason, obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
scope log(XO_DEBUG(false));
|
||||
|
||||
for (size_type i = 0; i < size_; ++i) {
|
||||
log && log("DArray::visit_gco_children (loop)", xtag("i", i), xtag("z", size_));
|
||||
|
||||
obj<AGCObject> & elt = elts_[i];
|
||||
|
||||
gc.visit_child(&elt);
|
||||
gc.visit_child(reason, &elt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue