| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 4b3107fec70c7fb78a9b72bb440406b8590a4554..dba129ac9a1c3b3c6993638240e39ebc338dfd17 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -3184,7 +3184,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| __ Branch(&miss, ne, t1, Operand(at));
|
|
|
| // Make sure the function is the Array() function
|
| - __ LoadArrayFunction(t0);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0);
|
| __ Branch(&megamorphic, ne, a1, Operand(t0));
|
| __ jmp(&done);
|
|
|
| @@ -3207,7 +3207,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| // indicate the ElementsKind if function is the Array constructor.
|
| __ bind(&initialize);
|
| // Make sure the function is the Array() function
|
| - __ LoadArrayFunction(t0);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0);
|
| __ Branch(¬_array_function, ne, a1, Operand(t0));
|
|
|
| // The target function is the Array constructor.
|
|
|