Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 978704ac54286aff224e370390121e305cd45100..3939921bf7304378b13540fc4a1fda3f426216b3 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1496,11 +1496,11 @@ FixedArrayBase* JSObject::elements() { |
} |
-void JSObject::ValidateElements() { |
+void JSObject::ValidateElements(Handle<JSObject> object) { |
#ifdef ENABLE_SLOW_ASSERTS |
if (FLAG_enable_slow_asserts) { |
- ElementsAccessor* accessor = GetElementsAccessor(); |
- accessor->Validate(this); |
+ ElementsAccessor* accessor = object->GetElementsAccessor(); |
+ accessor->Validate(object); |
} |
#endif |
} |
@@ -1640,7 +1640,7 @@ inline bool AllocationSite::DigestPretenuringFeedback() { |
void JSObject::EnsureCanContainHeapObjectElements(Handle<JSObject> object) { |
- object->ValidateElements(); |
+ JSObject::ValidateElements(object); |
ElementsKind elements_kind = object->map()->elements_kind(); |
if (!IsFastObjectElementsKind(elements_kind)) { |
if (IsFastHoleyElementsKind(elements_kind)) { |