Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 62d42fda88ad77450b68117f7aa987d25bb1b862..b3d64b910d4cb08be20cb678c6fd8e7c1f593353 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -4557,6 +4557,19 @@ void MacroAssembler::LoadGlobalFunction(int index, Register function) { |
} |
+void MacroAssembler::LoadArrayFunction(Register function) { |
+ // Load the global or builtins object from the current context. |
+ lw(function, |
+ MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
+ // Load the global context from the global or builtins object. |
+ lw(function, |
+ FieldMemOperand(function, GlobalObject::kGlobalContextOffset)); |
+ // Load the array function from the native context. |
+ lw(function, |
+ MemOperand(function, Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); |
+} |
+ |
+ |
void MacroAssembler::LoadGlobalFunctionInitialMap(Register function, |
Register map, |
Register scratch) { |