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

Unified Diff: vm/verifier.h

Issue 10271032: - Add extra checking when validating objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « vm/stub_code_x64.cc ('k') | vm/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/verifier.h
===================================================================
--- vm/verifier.h (revision 7182)
+++ vm/verifier.h (working copy)
@@ -22,19 +22,22 @@
// Forward declarations.
+class Isolate;
class RawObject;
// A sample object pointer visitor implementation which verifies that
// the pointers visited are contained in the isolate heap.
class VerifyPointersVisitor : public ObjectPointerVisitor {
public:
- VerifyPointersVisitor() {}
+ explicit VerifyPointersVisitor(Isolate* isolate) : isolate_(isolate) {}
virtual void VisitPointers(RawObject** first, RawObject** last);
static void VerifyPointers();
private:
+ Isolate* isolate_;
+
DISALLOW_COPY_AND_ASSIGN(VerifyPointersVisitor);
};
« no previous file with comments | « vm/stub_code_x64.cc ('k') | vm/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698