xo-interpreter2 stack: scaffold for virtual root VSM [WIP]
This commit is contained in:
parent
f0d4e58010
commit
f8839278c3
2 changed files with 26 additions and 0 deletions
|
|
@ -9,6 +9,14 @@ namespace xo {
|
|||
using xo::mm::MemorySizeInfo;
|
||||
|
||||
namespace scm {
|
||||
void
|
||||
ReaderResult::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
gc.forward_pivot_inplace(&expr_);
|
||||
}
|
||||
|
||||
// ----- SchematikaReader -----
|
||||
|
||||
SchematikaReader::SchematikaReader(const ReaderConfig & config,
|
||||
obj<AAllocator> expr_alloc,
|
||||
obj<AAllocator> aux_alloc)
|
||||
|
|
@ -198,6 +206,16 @@ namespace xo {
|
|||
this->tokenizer_.discard_current_line();
|
||||
this->parser_.reset_to_idle_toplevel();
|
||||
}
|
||||
|
||||
void
|
||||
SchematikaReader::forward_children(obj<ACollector> gc) noexcept
|
||||
{
|
||||
// tokenizer doesn't contain any gc-aware pointers.
|
||||
|
||||
parser_.forward_children(gc);
|
||||
result_.forward_children(gc);
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue