Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index f30706ea889e27ab81e38824bcbaefef7014050e..d8ea7765a981de5ced51074ffeef1a66d28db9a7 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -3833,8 +3833,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement( |
__ b(ne, &check_capacity); |
int size = FixedArray::SizeFor(JSArray::kPreallocatedArrayElements); |
- __ AllocateInNewSpace(size, elements_reg, scratch, scratch2, &slow, |
- TAG_OBJECT); |
+ __ Allocate(size, elements_reg, scratch, scratch2, &slow, TAG_OBJECT); |
__ LoadRoot(scratch, Heap::kFixedArrayMapRootIndex); |
__ str(scratch, FieldMemOperand(elements_reg, JSObject::kMapOffset)); |
@@ -3987,8 +3986,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( |
__ b(ne, &check_capacity); |
int size = FixedDoubleArray::SizeFor(JSArray::kPreallocatedArrayElements); |
- __ AllocateInNewSpace(size, elements_reg, scratch1, scratch2, &slow, |
- TAG_OBJECT); |
+ __ Allocate(size, elements_reg, scratch1, scratch2, &slow, TAG_OBJECT); |
// Initialize the new FixedDoubleArray. |
__ LoadRoot(scratch1, Heap::kFixedDoubleArrayMapRootIndex); |