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

Unified Diff: vm/heap.h

Issue 8761006: - Implement a simple old-generation marker. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « vm/gc_marker.cc ('k') | vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap.h
===================================================================
--- vm/heap.h (revision 1929)
+++ vm/heap.h (working copy)
@@ -53,19 +53,24 @@
bool Contains(uword addr) const;
bool CodeContains(uword addr) const;
- // Initialize the heap and register it with the isolate.
- static void Init(Isolate* isolate);
+ // Visit all pointers in the space.
+ void IterateNewPointers(ObjectPointerVisitor* visitor);
+ void IterateOldPointers(ObjectPointerVisitor* visitor);
- // Verify that all pointers in the heap point to the heap.
- bool Verify() const;
+ void CollectGarbage(Space space);
+ void CollectAllGarbage();
- void IterateOldPointers(ObjectPointerVisitor* visitor);
-
// Accessors for inlined allocation in generated code.
uword TopAddress();
uword EndAddress();
static intptr_t new_space_offset() { return OFFSET_OF(Heap, new_space_); }
+ // Initialize the heap and register it with the isolate.
+ static void Init(Isolate* isolate);
+
+ // Verify that all pointers in the heap point to the heap.
+ bool Verify() const;
+
private:
Heap();
« no previous file with comments | « vm/gc_marker.cc ('k') | vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698