xo-interpreter2 stack: plumbing for aux_mm and use opportunistically
This commit is contained in:
parent
6209c812d3
commit
31c6697467
12 changed files with 243 additions and 183 deletions
|
|
@ -24,13 +24,14 @@ namespace xo {
|
|||
namespace scm {
|
||||
ParserStateMachine::ParserStateMachine(const ArenaConfig & config,
|
||||
size_type max_stringtable_capacity,
|
||||
obj<AAllocator> expr_alloc)
|
||||
obj<AAllocator> expr_alloc,
|
||||
obj<AAllocator> aux_alloc)
|
||||
: stringtable_{max_stringtable_capacity},
|
||||
parser_alloc_{DArena::map(config)},
|
||||
expr_alloc_{expr_alloc},
|
||||
aux_alloc_{aux_alloc},
|
||||
debug_flag_{config.debug_flag_}
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -60,8 +61,8 @@ namespace xo {
|
|||
stringtable_.visit_pools(visitor);
|
||||
parser_alloc_.visit_pools(visitor);
|
||||
|
||||
// not counting expr_alloc_. We don't consider
|
||||
// that to be owned by ParserStateMachine
|
||||
// not counting {expr_alloc_, fixed_alloc_}. We don't consider
|
||||
// either to be owned by ParserStateMachine
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue