refactor: + narrower interface for gc pointer forwarding
add AGCObjectVisitor, instead of requiring ACollector.
This commit is contained in:
parent
bc83df3f08
commit
7e583b1337
36 changed files with 138 additions and 179 deletions
|
|
@ -41,25 +41,17 @@ namespace xo {
|
|||
return result;
|
||||
}
|
||||
|
||||
std::size_t
|
||||
DVsmEvalArgsFrame::shallow_size() const noexcept
|
||||
{
|
||||
return sizeof(DVsmEvalArgsFrame);
|
||||
}
|
||||
|
||||
DVsmEvalArgsFrame *
|
||||
DVsmEvalArgsFrame::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return gc.std_move_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
DVsmEvalArgsFrame::forward_children(obj<ACollector> gc) noexcept
|
||||
void
|
||||
DVsmEvalArgsFrame::visit_gco_children(obj<AGCObjectVisitor> gc) noexcept
|
||||
{
|
||||
gc.forward_inplace(&parent_);
|
||||
gc.forward_inplace(&apply_expr_);
|
||||
|
||||
return this->shallow_size();
|
||||
gc.visit_child(&parent_);
|
||||
gc.visit_child(&apply_expr_);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue