]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: remove some dead code
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 16 Oct 2009 03:06:43 +0000 (22:06 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Fri, 16 Oct 2009 03:06:43 +0000 (22:06 -0500)
vm/aging_space.hpp
vm/copying_collector.hpp
vm/tenured_space.hpp

index 743363b10c7e662a59ea3ea1acf8d7ff13ca8d0d..c2ec2a645e6bae172efdb58eb67e29cf7518e47b 100644 (file)
@@ -3,10 +3,6 @@ namespace factor
 
 struct aging_space : old_space {
        aging_space(cell size, cell start) : old_space(size,start) {}
-
-       bool is_nursery_p() { return false; }
-       bool is_aging_p()   { return true; }
-       bool is_tenured_p() { return false; }
 };
 
 }
index 654b84f3ae3577702bb9c111ae67c7c1deda0380..297e70e687441965a43de0a65e3f9604bb57f5e8 100644 (file)
@@ -153,20 +153,14 @@ end:              this->myvm->gc_stats.card_scan_time += (current_micros() - start_time);
                for(; iter != end; iter++) trace_literal_references(*iter);
        }
 
-       template<typename SourceGeneration>
-       void trace_objects_between(SourceGeneration *gen, cell scan, cell *end)
+       void cheneys_algorithm()
        {
-               while(scan && scan < *end)
+               while(scan && scan < this->target->here)
                {
                        this->trace_slots((object *)scan);
-                       scan = gen->next_object_after(this->myvm,scan);
+                       scan = this->target->next_object_after(this->myvm,scan);
                }
        }
-
-       void cheneys_algorithm()
-       {
-               trace_objects_between(this->target,scan,&this->target->here);
-       }
 };
 
 }
index a05b272fb644c56eb172b41a7fd1540d65ad7bfa..f9f584b200d3d4fc343d0a4c105bd06802c5225f 100644 (file)
@@ -3,10 +3,6 @@ namespace factor
 
 struct tenured_space : old_space {
        tenured_space(cell size, cell start) : old_space(size,start) {}
-
-       bool is_nursery_p() { return false; }
-       bool is_aging_p()   { return false; }
-       bool is_tenured_p() { return true; }
 };
 
 }