| Index: src/arm/code-stubs-arm.cc
|
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc
|
| index b3a3acf3e76a36a2eccdf9aaaca9958fdbbce0e8..ac46fe8c12e8f5c668827cb7caa1bce5ed8aa56c 100644
|
| --- a/src/arm/code-stubs-arm.cc
|
| +++ b/src/arm/code-stubs-arm.cc
|
| @@ -3037,7 +3037,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| __ b(ne, &miss);
|
|
|
| // Make sure the function is the Array() function
|
| - __ LoadArrayFunction(r4);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4);
|
| __ cmp(r1, r4);
|
| __ b(ne, &megamorphic);
|
| __ jmp(&done);
|
| @@ -3060,7 +3060,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(r4);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4);
|
| __ cmp(r1, r4);
|
| __ b(ne, ¬_array_function);
|
|
|
|
|