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