refactor focusing on xo-alloc2/ xo-gc/ write-barrier

ability to inform allocator of gco->gco mutation, via AAllocator i/face.
This commit is contained in:
Roland Conybeare 2026-05-01 19:54:26 -04:00
commit 3d24a523f3
4 changed files with 15 additions and 11 deletions

View file

@ -178,7 +178,7 @@ namespace xo {
DExpectQArraySsm::on_quoted_literal(obj<AGCObject> lit,
ParserStateMachine * p_psm)
{
auto gc = p_psm->expr_alloc().try_to_facet<ACollector>();
//auto gc = p_psm->expr_alloc().try_to_facet<ACollector>();
if(state_.code() == QArrayXst::code::qarray_1a) {
// append lit at the end of array_
@ -195,7 +195,7 @@ namespace xo {
2 * array_->capacity());
}
bool ok = array_->push_back(gc, lit);
bool ok = array_->push_back(p_psm->expr_alloc(), lit);
assert(ok);
}