Index: runtime/vm/raw_object.cc |
diff --git a/runtime/vm/raw_object.cc b/runtime/vm/raw_object.cc |
index 8f92e9dfae0e1cd5d592891c5fb1eaa562b3969c..73070ac2451388bbe710e2a7e5e827bd1c537922 100644 |
--- a/runtime/vm/raw_object.cc |
+++ b/runtime/vm/raw_object.cc |
@@ -15,11 +15,6 @@ |
namespace dart { |
-#if defined(DEBUG) |
-DEFINE_FLAG(bool, validate_overwrite, true, "Verify overwritten fields."); |
-#endif // DEBUG |
- |
- |
void RawObject::Validate(Isolate* isolate) const { |
if (Object::void_class_ == reinterpret_cast<RawClass*>(kHeapObjectTag)) { |
// Validation relies on properly initialized class classes. Skip if the |
@@ -226,22 +221,6 @@ intptr_t RawObject::SizeFromClass() const { |
} |
-#if defined(DEBUG) |
-void RawObject::ValidateOverwrittenPointer(RawObject* raw) { |
- if (FLAG_validate_overwrite) { |
- raw->Validate(Isolate::Current()); |
- } |
-} |
- |
- |
-void RawObject::ValidateOverwrittenSmi(RawSmi* raw) { |
- if (FLAG_validate_overwrite && raw->IsHeapObject() && raw != Object::null()) { |
- FATAL1("Expected smi/null, found: %" Px "\n", reinterpret_cast<uword>(raw)); |
- } |
-} |
-#endif // DEBUG |
- |
- |
intptr_t RawObject::VisitPointers(ObjectPointerVisitor* visitor) { |
intptr_t size = 0; |