xo-interpreter: refactor for explicit gc::GC* dep
This commit is contained in:
parent
4d2cd54365
commit
52113737ac
24 changed files with 123 additions and 63 deletions
|
|
@ -559,6 +559,19 @@ namespace xo {
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
GC::check_owned(Object * src) const
|
||||
{
|
||||
return this->fromspace_contains(src);
|
||||
}
|
||||
|
||||
bool
|
||||
GC::check_move(Object * src) const
|
||||
{
|
||||
return (this->runstate().full_move()
|
||||
|| (this->tospace_generation_of(src) != gc::generation_result::tenured));
|
||||
}
|
||||
|
||||
void
|
||||
GC::swap_nursery()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue