| Index: src/ic/arm64/handler-compiler-arm64.cc
|
| diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc
|
| index a5e9ff26add722099a72fa72fdc82ce39b94af35..13b4f9825094f7856a2ad8a5122bed698739b48d 100644
|
| --- a/src/ic/arm64/handler-compiler-arm64.cc
|
| +++ b/src/ic/arm64/handler-compiler-arm64.cc
|
| @@ -78,9 +78,7 @@ void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup(
|
|
|
| void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
|
| MacroAssembler* masm, int index, Register result, Label* miss) {
|
| - __ Ldr(result, GlobalObjectMemOperand());
|
| - __ Ldr(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
|
| - __ Ldr(result, ContextMemOperand(result, index));
|
| + __ LoadNativeContextSlot(index, result);
|
| // Load its initial map. The global functions all have initial maps.
|
| __ Ldr(result,
|
| FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
|
|
|