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

Unified Diff: runtime/vm/visitor.h

Issue 10696029: Implement a 2-pass heap verification algorithm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 8 years, 5 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/verifier.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/visitor.h
diff --git a/runtime/vm/visitor.h b/runtime/vm/visitor.h
index cdd0c5bd03e0aa5c56116999f1fddd3e71ac5c58..20b48b38e2811b0c436c706e0436e353153de5bd 100644
--- a/runtime/vm/visitor.h
+++ b/runtime/vm/visitor.h
@@ -41,10 +41,19 @@ class ObjectPointerVisitor {
// An object visitor interface.
class ObjectVisitor {
public:
+ explicit ObjectVisitor(Isolate* isolate) : isolate_(isolate) {}
+
virtual ~ObjectVisitor() {}
+ Isolate* isolate() const { return isolate_; }
+
// Invoked for each object.
virtual void VisitObject(RawObject* obj) = 0;
+
+ private:
+ Isolate* isolate_;
+
+ DISALLOW_COPY_AND_ASSIGN(ObjectVisitor);
};
« no previous file with comments | « runtime/vm/verifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698