Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 9cb950392fdda0a8e363d8293708b43479f25b4b..4604c33312f7034fb8fc48ded5ca0cbf520fec6a 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -4795,14 +4795,6 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( |
__ str(scratch1, |
FieldMemOperand(elements_reg, FixedDoubleArray::kLengthOffset)); |
- __ mov(scratch1, Operand(kHoleNanLower32)); |
- __ mov(scratch2, Operand(kHoleNanUpper32)); |
- for (int i = 1; i < JSArray::kPreallocatedArrayElements; i++) { |
- int offset = FixedDoubleArray::OffsetOfElementAt(i); |
- __ str(scratch1, FieldMemOperand(elements_reg, offset)); |
- __ str(scratch2, FieldMemOperand(elements_reg, offset + kPointerSize)); |
- } |
- |
__ mov(scratch1, elements_reg); |
__ StoreNumberToDoubleElements(value_reg, |
key_reg, |
@@ -4814,6 +4806,14 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( |
scratch5, |
&transition_elements_kind); |
+ __ mov(scratch1, Operand(kHoleNanLower32)); |
+ __ mov(scratch2, Operand(kHoleNanUpper32)); |
+ for (int i = 1; i < JSArray::kPreallocatedArrayElements; i++) { |
+ int offset = FixedDoubleArray::OffsetOfElementAt(i); |
+ __ str(scratch1, FieldMemOperand(elements_reg, offset)); |
+ __ str(scratch2, FieldMemOperand(elements_reg, offset + kPointerSize)); |
+ } |
+ |
// Install the new backing store in the JSArray. |
__ str(elements_reg, |
FieldMemOperand(receiver_reg, JSObject::kElementsOffset)); |