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

Unified Diff: runtime/vm/verifier.h

Issue 2160953002: Add a verification step which iterates over the heap and verifies that all canonical objects are co… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments. Created 4 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/raw_object_snapshot.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 a34d7f6305ff0939bce8a3ac741c1dde6aeb5f7e..8ae222d661fcf0b3267463e2c2a35e447f09f50d 100644
--- a/runtime/vm/verifier.h
+++ b/runtime/vm/verifier.h
@@ -81,6 +81,21 @@ class VerifyWeakPointersVisitor : public HandleVisitor {
DISALLOW_COPY_AND_ASSIGN(VerifyWeakPointersVisitor);
};
+
+#if defined(DEBUG)
+class VerifyCanonicalVisitor : public ObjectVisitor {
+ public:
+ explicit VerifyCanonicalVisitor(Thread* thread);
+ virtual void VisitObject(RawObject* obj);
+
+ private:
+ Thread* thread_;
+ Instance& instanceHandle_;
+
+ DISALLOW_COPY_AND_ASSIGN(VerifyCanonicalVisitor);
+};
+#endif // defined(DEBUG)
+
} // namespace dart
#endif // VM_VERIFIER_H_
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698