Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index ea7604ae40cdece31bc632e643cb16ee62e9b58a..5951d5921e184e4234f4fdaa63258e7bf0237291 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -3839,8 +3839,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)); |
@@ -3993,8 +3992,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); |