refactor: rename shallow_copy -> shallow_move + streamline
Use RCollector.std_copy_for where appropriate
This commit is contained in:
parent
bd88f441fc
commit
e179c9795b
36 changed files with 58 additions and 82 deletions
|
|
@ -47,14 +47,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DVsmApplyFrame *
|
||||
DVsmApplyFrame::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
DVsmApplyFrame::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
DVsmApplyFrame * copy = (DVsmApplyFrame *)mm.alloc_copy((std::byte *)this);
|
||||
|
||||
if (copy)
|
||||
*copy = *this;
|
||||
|
||||
return copy;
|
||||
return gc.std_copy_for(this);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue