Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: vm/heap.cc

Issue 8898034: - Implement the old sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698