VM: Refactor copying_collector.hpp to Factor style
parent
2a5126e49a
commit
0cf7feba0b
|
@ -1,17 +1,16 @@
|
|||
namespace factor
|
||||
{
|
||||
namespace factor {
|
||||
|
||||
template <typename TargetGeneration, typename Policy>
|
||||
struct copying_collector : collector<TargetGeneration, Policy> {
|
||||
cell scan;
|
||||
|
||||
explicit copying_collector(factor_vm *parent_, TargetGeneration *target_, Policy policy_) :
|
||||
collector<TargetGeneration,Policy>(parent_,target_,policy_), scan(target_->here) {}
|
||||
explicit copying_collector(factor_vm* parent_, TargetGeneration* target_,
|
||||
Policy policy_)
|
||||
: collector<TargetGeneration, Policy>(parent_, target_, policy_),
|
||||
scan(target_->here) {}
|
||||
|
||||
void cheneys_algorithm()
|
||||
{
|
||||
while(scan && scan < this->target->here)
|
||||
{
|
||||
void cheneys_algorithm() {
|
||||
while (scan && scan < this->target->here) {
|
||||
this->trace_object((object*)scan);
|
||||
scan = this->target->next_object_after(scan);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue