refactor: retire GCObject.shallow_copy()
Collector gets this info from gc-owned object header
This commit is contained in:
parent
30dee1b97f
commit
e6c789b4e6
19 changed files with 26 additions and 183 deletions
|
|
@ -27,22 +27,16 @@ namespace xo {
|
|||
return ppdetail_atomic<double>::print_pretty(ppii, value_);
|
||||
}
|
||||
|
||||
size_t
|
||||
DFloat::shallow_size() const noexcept
|
||||
{
|
||||
return sizeof(DFloat);
|
||||
}
|
||||
|
||||
DFloat *
|
||||
DFloat::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
return gc.std_move_for(this);
|
||||
}
|
||||
|
||||
size_t
|
||||
void
|
||||
DFloat::forward_children(obj<ACollector>) noexcept
|
||||
{
|
||||
return shallow_size();
|
||||
// noop
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue