| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 881ea7e81203642691337322f870adbcaaa18ba0..468fd624431c890f5d08906bd3bb3848b9d73d8d 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -1007,7 +1007,7 @@ static void AllocateEmptyJSArray(MacroAssembler* masm,
|
| const int initial_capacity = JSArray::kPreallocatedArrayElements;
|
| STATIC_ASSERT(initial_capacity >= 0);
|
|
|
| - __ LoadGlobalInitialConstructedArrayMap(array_function, scratch2, scratch1);
|
| + __ LoadInitialArrayMap(array_function, scratch2, scratch1);
|
|
|
| // Allocate the JSArray object together with space for a fixed array with the
|
| // requested elements.
|
| @@ -1106,9 +1106,7 @@ static void AllocateJSArray(MacroAssembler* masm,
|
| Register scratch,
|
| bool fill_with_hole,
|
| Label* gc_required) {
|
| - __ LoadGlobalInitialConstructedArrayMap(array_function,
|
| - scratch,
|
| - elements_array);
|
| + __ LoadInitialArrayMap(array_function, scratch, elements_array);
|
|
|
| if (FLAG_debug_code) { // Assert that array size is not zero.
|
| __ testq(array_size, array_size);
|
|
|