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

Unified Diff: runtime/vm/verifier.h

Issue 630933002: Check mark bit when verifying heap. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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
===================================================================
--- runtime/vm/verifier.h (revision 40925)
+++ runtime/vm/verifier.h (working copy)
@@ -17,17 +17,29 @@
class ObjectSet;
class RawObject;
+
+enum MarkExpectation {
+ kForbidMarked,
+ kAllowMarked,
+ kRequireMarked
+};
+
+
class VerifyObjectVisitor : public ObjectVisitor {
public:
- VerifyObjectVisitor(Isolate* isolate, ObjectSet* allocated_set)
+ VerifyObjectVisitor(Isolate* isolate,
+ ObjectSet* allocated_set,
+ MarkExpectation mark_expectation)
: ObjectVisitor(isolate),
- allocated_set_(allocated_set) {
+ allocated_set_(allocated_set),
+ mark_expectation_(mark_expectation) {
}
virtual void VisitObject(RawObject* obj);
private:
ObjectSet* allocated_set_;
+ MarkExpectation mark_expectation_;
DISALLOW_COPY_AND_ASSIGN(VerifyObjectVisitor);
};
@@ -43,7 +55,7 @@
virtual void VisitPointers(RawObject** first, RawObject** last);
- static void VerifyPointers();
+ static void VerifyPointers(MarkExpectation mark_expectation = kForbidMarked);
private:
ObjectSet* allocated_set_;
« 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