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