Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 3f4aab3d74e8fa30eb3e5d024856f0986ef0da31..f875c9609d7a54c702778c4592f638789e7ecaea 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -116,9 +116,7 @@ static void AllocateEmptyJSArray(MacroAssembler* masm, |
Label* gc_required) { |
const int initial_capacity = JSArray::kPreallocatedArrayElements; |
STATIC_ASSERT(initial_capacity >= 0); |
- // Load the initial map from the array function. |
- __ lw(scratch1, FieldMemOperand(array_function, |
- JSFunction::kPrototypeOrInitialMapOffset)); |
+ __ LoadGlobalInitialConstructedArrayMap(array_function, scratch2, scratch1); |
// Allocate the JSArray object together with space for a fixed array with the |
// requested elements. |
@@ -214,9 +212,8 @@ static void AllocateJSArray(MacroAssembler* masm, |
bool fill_with_hole, |
Label* gc_required) { |
// Load the initial map from the array function. |
- __ lw(elements_array_storage, |
- FieldMemOperand(array_function, |
- JSFunction::kPrototypeOrInitialMapOffset)); |
+ __ LoadGlobalInitialConstructedArrayMap(array_function, scratch2, |
+ elements_array_storage); |
if (FLAG_debug_code) { // Assert that array size is not zero. |
__ Assert( |