xo-interpreter/xo-alloc: GlobalEnv + mm -> shallow_copy()
This commit is contained in:
parent
56a1c3bc75
commit
4d2cd54365
18 changed files with 52 additions and 37 deletions
|
|
@ -97,12 +97,12 @@ namespace xo {
|
|||
}
|
||||
|
||||
Object *
|
||||
List::_shallow_copy() const {
|
||||
scope log(XO_DEBUG(Object::mm->debug_flag()));
|
||||
List::_shallow_copy(gc::IAlloc * mm) const {
|
||||
scope log(XO_DEBUG(mm->debug_flag()));
|
||||
|
||||
assert(!(this->is_nil()));
|
||||
|
||||
Cpof cpof(Object::mm, this);
|
||||
Cpof cpof(mm, this);
|
||||
|
||||
return new (cpof) List(*this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue