xo-interpreter2 stack: use RuntimeContext to streamline setup
This commit is contained in:
parent
ea31dbf0d3
commit
ad1260bd54
2 changed files with 12 additions and 5 deletions
|
|
@ -11,8 +11,9 @@
|
|||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register primitive-factories **/
|
||||
bool interpreter2_register_primitives(obj<xo::mm::AAllocator> gc,
|
||||
StringTable * stbl,
|
||||
bool interpreter2_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//xo::mm::AAllocator> gc,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,16 +51,22 @@ namespace xo {
|
|||
}
|
||||
|
||||
bool
|
||||
interpreter2_register_primitives(obj<xo::mm::AAllocator> mm,
|
||||
StringTable * stbl,
|
||||
interpreter2_register_primitives(obj<ARuntimeContext> rcx,
|
||||
//obj<xo::mm::AAllocator> mm,
|
||||
//StringTable * stbl,
|
||||
InstallSink sink,
|
||||
InstallFlags flags)
|
||||
{
|
||||
scope log(XO_DEBUG(true));
|
||||
|
||||
obj<AAllocator> mm = rcx.allocator();
|
||||
StringTable * stbl = rcx.stringtable();
|
||||
|
||||
bool ok = true;
|
||||
|
||||
ok = ok & install_aux(sink, VsmPrimitives::make_report_memory_use_pm(mm, stbl), flags);
|
||||
ok = ok & install_aux(sink,
|
||||
VsmPrimitives::make_report_memory_use_pm(mm, stbl),
|
||||
flags);
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue