Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 1e91029f197468ed38f7819fd1af9bba94d0eaf7..56484af3099618eb9f7cfc0aea773f121ed5e4d7 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -3905,6 +3905,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( |
} else { |
// Check that the key is within bounds. |
__ cmp(ecx, FieldOperand(edi, FixedArray::kLengthOffset)); // smis. |
+ __ j(above_equal, &miss_force_generic); |
} |
__ bind(&finish_store); |
@@ -3970,6 +3971,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( |
// Increment the length of the array. |
__ add(FieldOperand(edx, JSArray::kLengthOffset), |
Immediate(Smi::FromInt(1))); |
+ __ mov(edi, FieldOperand(edx, JSObject::kElementsOffset)); |
__ jmp(&finish_store); |
__ bind(&check_capacity); |