Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 4a94f230e1bdd6d08fc1aa4ab6f11c710f417cfd..d9361fdd02efeb7a546fb28b6bec6714dff4ca39 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -972,7 +972,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. |
@@ -1071,9 +1071,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); |