| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 959da8e7489c43bbdb38db7b0e0b198120a48261..ff7484d7cc3e91fdda7f007a8cc3214e04be8fde 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -3830,8 +3830,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| __ Branch(&check_capacity, ne, elements_reg, Operand(at));
|
|
|
| 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);
|
| __ sw(scratch, FieldMemOperand(elements_reg, JSObject::kMapOffset));
|
| @@ -3981,8 +3980,7 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| __ Branch(&check_capacity, ne, elements_reg, Operand(at));
|
|
|
| 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);
|
|
|