Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 32b65815605748f3f5a2250abed9442e116c2ed5..1fac70edd9bb6e4d95dd7b3d33987994d8e51379 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3749,10 +3749,11 @@ static bool IsFastLiteral(Handle<JSObject> boilerplate, |
if (boilerplate->HasFastDoubleElements()) { |
*total_size += FixedDoubleArray::SizeFor(elements->length()); |
} else if (boilerplate->HasFastElements()) { |
+ Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements); |
int length = elements->length(); |
for (int i = 0; i < length; i++) { |
if ((*max_properties)-- == 0) return false; |
- Handle<Object> value = JSObject::GetElement(boilerplate, i); |
+ Handle<Object> value(fast_elements->get(i)); |
if (value->IsJSObject()) { |
Handle<JSObject> value_object = Handle<JSObject>::cast(value); |
if (!IsFastLiteral(value_object, |