xo-interpreter2 stack: refactor + bugfix operator expr
This commit is contained in:
parent
79586af2fa
commit
87af734814
3 changed files with 16 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ namespace xo {
|
|||
|
||||
static bool install_type(DX1Collector & d, const AGCObject & iface);
|
||||
static void add_gc_root_poly(DX1Collector & d, obj<AGCObject> * p_root);
|
||||
static void remove_gc_root_poly(DX1Collector & d, obj<AGCObject> * p_root);
|
||||
static void request_gc(DX1Collector & d, generation upto);
|
||||
static void forward_inplace(DX1Collector & d, AGCObject * lhs_iface, void ** lhs_data);
|
||||
|
||||
|
|
|
|||
|
|
@ -287,6 +287,14 @@ namespace xo {
|
|||
*(obj<AGCObject> **)mem = p_root;
|
||||
}
|
||||
|
||||
void
|
||||
DX1Collector::remove_gc_root_poly(obj<AGCObject> * p_root) noexcept
|
||||
{
|
||||
// iterate over roots_, find p_root and drop it
|
||||
|
||||
(void)p_root;
|
||||
}
|
||||
|
||||
void
|
||||
DX1Collector::request_gc(generation upto) noexcept
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,6 +67,13 @@ namespace xo {
|
|||
d.add_gc_root_poly(p_root);
|
||||
}
|
||||
|
||||
void
|
||||
ICollector_DX1Collector::remove_gc_root_poly(DX1Collector & d,
|
||||
obj<AGCObject> * p_root)
|
||||
{
|
||||
d.remove_gc_root_poly(p_root);
|
||||
}
|
||||
|
||||
void
|
||||
ICollector_DX1Collector::request_gc(DX1Collector & d,
|
||||
generation upto)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue