xo-interpreter2: + xo-gc dep for primitives
This commit is contained in:
parent
5909e9797f
commit
c9a1793acd
4 changed files with 11 additions and 1 deletions
|
|
@ -31,6 +31,12 @@ namespace xo {
|
|||
return retval;
|
||||
}
|
||||
|
||||
VsmConfig with_x1_debug_flag(bool x) const {
|
||||
VsmConfig retval = *this;
|
||||
retval.x1_config_.debug_flag_ = x;
|
||||
return retval;
|
||||
}
|
||||
|
||||
/** true for interactive parser session; false for batch session **/
|
||||
bool interactive_flag_ = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -86,6 +86,8 @@ namespace xo {
|
|||
}
|
||||
|
||||
this->global_env_ = reader_.global_env();
|
||||
|
||||
//this->_add_gc_roots();
|
||||
}
|
||||
|
||||
obj<AAllocator>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include "SetupInterpreter2.hpp"
|
||||
|
||||
#include <xo/reader2/init_reader2.hpp>
|
||||
#include <xo/gc/init_gc.hpp>
|
||||
#include <xo/alloc2/CollectorTypeRegistry.hpp>
|
||||
|
||||
namespace xo {
|
||||
|
|
@ -31,6 +32,7 @@ namespace xo {
|
|||
|
||||
/* direct subsystem deps for xo-interpreter2/ */
|
||||
retval ^= InitSubsys<S_reader2_tag>::require();
|
||||
retval ^= InitSubsys<S_gc_tag>::require();
|
||||
|
||||
/* xo-interpreter2/'s own initialization code */
|
||||
retval ^= Subsystem::provide<S_interpreter2_tag>("interpreter2", &init);
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ namespace ut {
|
|||
REQUIRE(to_2 == nullptr);
|
||||
|
||||
REQUIRE(gc.reserved_total()
|
||||
== otypes->reserved() + roots->reserved() + 4 * from_0->reserved());
|
||||
== otypes->reserved() + roots->store()->reserved() + 4 * from_0->reserved());
|
||||
|
||||
log && log(xtag("from_0", from_0->lo_), xtag("to_0", to_0->lo_));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue