| Index: vm/heap.cc
|
| ===================================================================
|
| --- vm/heap.cc (revision 2404)
|
| +++ vm/heap.cc (working copy)
|
| @@ -18,6 +18,10 @@
|
| namespace dart {
|
|
|
| DEFINE_FLAG(bool, verbose_gc, false, "Enables verbose GC.");
|
| +DEFINE_FLAG(bool, verify_before_gc, false,
|
| + "Enables heap verification before GC.");
|
| +DEFINE_FLAG(bool, verify_after_gc, false,
|
| + "Enables heap verification after GC.");
|
| DEFINE_FLAG(bool, gc_at_alloc, false, "GC at every allocation.");
|
| DEFINE_FLAG(int, new_gen_heap_size, 32, "new gen heap size in MB,"
|
| "e.g: --new_gen_heap_size=64 allocates a 64MB new gen heap");
|
| @@ -114,6 +118,11 @@
|
| }
|
|
|
|
|
| +void Heap::IterateCodePointers(ObjectPointerVisitor* visitor) {
|
| + code_space_->VisitObjectPointers(visitor);
|
| +}
|
| +
|
| +
|
| void Heap::CollectGarbage(Space space) {
|
| switch (space) {
|
| case kNew:
|
|
|