Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index f0375acc2ab60ee076179fc508eeb8eedd8115dd..93af8bc636908c2fbc4c5335645d9041561eafee 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -610,8 +610,9 @@ class ElementsAccessorBase : public ElementsAccessor { |
ElementsAccessorSubclass::ValidateContents(holder, length); |
} |
- virtual void Validate(JSObject* holder) V8_FINAL V8_OVERRIDE { |
- ElementsAccessorSubclass::ValidateImpl(holder); |
+ virtual void Validate(Handle<JSObject> holder) V8_FINAL V8_OVERRIDE { |
+ DisallowHeapAllocation no_gc; |
+ ElementsAccessorSubclass::ValidateImpl(*holder); |
} |
static bool HasElementImpl(Object* receiver, |
@@ -1014,7 +1015,7 @@ class FastElementsAccessor |
if (!array->ShouldConvertToSlowElements(new_capacity)) { |
FastElementsAccessorSubclass:: |
SetFastElementsCapacityAndLength(array, new_capacity, length); |
- array->ValidateElements(); |
+ JSObject::ValidateElements(array); |
return length_object; |
} |