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

Unified Diff: vm/verifier.cc

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/verifier.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/verifier.cc
===================================================================
--- vm/verifier.cc (revision 7182)
+++ vm/verifier.cc (working copy)
@@ -34,7 +34,7 @@
!Dart::vm_isolate()->heap()->Contains(obj_addr)) {
FATAL1("Invalid object pointer encountered 0x%lx\n", obj_addr);
}
- raw_obj->Validate();
+ raw_obj->Validate(isolate_);
}
}
}
@@ -51,7 +51,7 @@
void VerifyPointersVisitor::VerifyPointers() {
NoGCScope no_gc;
Isolate* isolate = Isolate::Current();
- VerifyPointersVisitor visitor;
+ VerifyPointersVisitor visitor(isolate);
// Visit all strongly reachable objects.
isolate->VisitObjectPointers(&visitor,
false, // skip prologue weak handles
« no previous file with comments | « vm/verifier.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698