xo-interpreter: Object->TaggedPtr conversion (prep for primitives)

This commit is contained in:
Roland Conybeare 2025-11-26 20:15:03 -05:00
commit 4488117ac3
16 changed files with 371 additions and 26 deletions

View file

@ -144,7 +144,7 @@ namespace xo {
if (owner_ == owner::unique) {
std::byte * mem = reinterpret_cast<std::byte *>(chars_);
copy->chars_ = reinterpret_cast<char *>(Object::mm->alloc_gc_copy(z_chars_, mem));
copy->chars_ = reinterpret_cast<char *>(mm->alloc_gc_copy(z_chars_, mem));
strlcpy(copy->chars_, chars_, z_chars_);
}