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
|
|
@ -42,8 +42,8 @@ namespace xo {
|
|||
}
|
||||
|
||||
Object *
|
||||
Float::_shallow_copy() const {
|
||||
Cpof cpof(Object::mm, this);
|
||||
Float::_shallow_copy(gc::IAlloc * mm) const {
|
||||
Cpof cpof(mm, this);
|
||||
return new (cpof) Float(*this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue