refactor: retire GCObject.shallow_copy()
Collector gets this info from gc-owned object header
This commit is contained in:
parent
210f568f7b
commit
5676a69dd3
13 changed files with 18 additions and 75 deletions
|
|
@ -27,25 +27,18 @@ namespace xo {
|
|||
return ppdetail_atomic<long>::print_pretty(ppii, value_);
|
||||
}
|
||||
|
||||
size_t
|
||||
DInteger::shallow_size() const noexcept
|
||||
{
|
||||
return sizeof(DInteger);
|
||||
}
|
||||
|
||||
DInteger *
|
||||
DInteger::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return gc.std_move_for(this);
|
||||
}
|
||||
|
||||
size_t
|
||||
void
|
||||
DInteger::forward_children(obj<ACollector>) noexcept
|
||||
{
|
||||
return shallow_size();
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue