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
|
|
@ -48,15 +48,9 @@ namespace xo {
|
|||
}
|
||||
|
||||
DVsmEvalArgsFrame *
|
||||
DVsmEvalArgsFrame::shallow_move(obj<AAllocator> mm) const noexcept
|
||||
DVsmEvalArgsFrame::shallow_move(obj<ACollector> gc) noexcept
|
||||
{
|
||||
DVsmEvalArgsFrame * copy
|
||||
= (DVsmEvalArgsFrame *)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