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

Unified Diff: runtime/vm/verifier.h

Issue 9148051: Provide API support for weak handles and post-mortem finalization. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 8 years, 11 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/scavenger.cc ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/verifier.h
diff --git a/runtime/vm/verifier.h b/runtime/vm/verifier.h
index f801d88844bf354c4ed4c765864b8dc53f4d12f2..62bd8a1a7c11d9cdf5f22ab87b25df7659b46dca 100644
--- a/runtime/vm/verifier.h
+++ b/runtime/vm/verifier.h
@@ -7,6 +7,7 @@
#include "vm/flags.h"
#include "vm/globals.h"
+#include "vm/handles.h"
#include "vm/visitor.h"
namespace dart {
@@ -32,6 +33,23 @@ class VerifyPointersVisitor : public ObjectPointerVisitor {
virtual void VisitPointers(RawObject** first, RawObject** last);
static void VerifyPointers();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor);
+};
+
+class VerifyWeakPointersVisitor : public HandleVisitor {
+ public:
+ explicit VerifyWeakPointersVisitor(VerifyPointersVisitor* visitor)
+ : visitor_(visitor) {
+ }
+
+ virtual void VisitHandle(uword addr);
+
+ private:
+ ObjectPointerVisitor* visitor_;
+
+ DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor);
};
} // namespace dart
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698