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
|
|
@ -126,11 +126,11 @@ namespace xo {
|
|||
}
|
||||
|
||||
Object *
|
||||
String::_shallow_copy() const
|
||||
String::_shallow_copy(gc::IAlloc * mm) const
|
||||
{
|
||||
// Reminder: String must come before secondary allocation,
|
||||
|
||||
Cpof cpof(Object::mm, this);
|
||||
Cpof cpof(mm, this);
|
||||
|
||||
// might expect to write:
|
||||
// gp<String> copy = new (gcm) String(Object::mm, owner_, z_chars_, chars_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue