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

Unified Diff: runtime/vm/heap.h

Issue 10696029: Implement a 2-pass heap verification algorithm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add missing delete Created 8 years, 6 months 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 | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 4e59ff0f64591ab0118a626afb99c7bfed666e99..f54ad77c9975ec94a60dfdb83acddd129b03dba9 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -17,6 +17,7 @@ namespace dart {
// Forward declarations.
class Isolate;
class ObjectPointerVisitor;
+class ObjectSet;
class VirtualMemory;
DECLARE_FLAG(bool, verbose_gc);
@@ -80,6 +81,10 @@ class Heap {
bool CodeContains(uword addr) const;
bool StubCodeContains(uword addr) const;
+ void VisitObjects(ObjectVisitor* visitor);
Ivan Posva 2012/06/29 22:20:41 It is unclear why these are named different. We al
cshapiro 2012/07/10 21:48:17 VisitObjects -> IterateObjects VisitObjectPointers
+
+ void VisitObjectPointers(ObjectPointerVisitor* visitor);
+
// Visit all pointers in the space.
void IterateNewPointers(ObjectPointerVisitor* visitor);
void IterateOldPointers(ObjectPointerVisitor* visitor);
@@ -122,6 +127,10 @@ class Heap {
// Print heap sizes.
void PrintSizes() const;
+ void StartEndAddress(uword* start, uword* end) const;
+
+ ObjectSet* GetAllocatedObjects() const;
+
// Generates a profile of the current and VM isolate heaps.
void Profile(Dart_HeapProfileWriteCallback callback, void* stream) const;
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/heap.cc » ('j') | runtime/vm/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698