| Index: src/a64/code-stubs-a64.cc
|
| diff --git a/src/a64/code-stubs-a64.cc b/src/a64/code-stubs-a64.cc
|
| index b8f5809fb86ed29f21e27b87af2d4202ad6033ee..89bc51cb60c675187d770396bfb59d237649ea9b 100644
|
| --- a/src/a64/code-stubs-a64.cc
|
| +++ b/src/a64/code-stubs-a64.cc
|
| @@ -3290,7 +3290,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| __ JumpIfNotRoot(x5, Heap::kAllocationSiteMapRootIndex, &miss);
|
|
|
| // Make sure the function is the Array() function
|
| - __ LoadArrayFunction(x4);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, x4);
|
| __ Cmp(x1, x4);
|
| __ B(ne, &megamorphic);
|
| __ B(&done);
|
| @@ -3312,7 +3312,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(x4);
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, x4);
|
| __ Cmp(x1, x4);
|
| __ B(ne, ¬_array_function);
|
|
|
|
|