Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index bff9c043016c5c3c95d5b415b4fea0facfc72f7b..066c70cccefc313697ad759d93fe7a9273db9ebb 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -5799,8 +5799,8 @@ |
__ Bind(&global_object); |
__ Ldr(result, FieldMemOperand(function, JSFunction::kContextOffset)); |
- __ Ldr(result, ContextMemOperand(result, Context::NATIVE_CONTEXT_INDEX)); |
- __ Ldr(result, ContextMemOperand(result, Context::GLOBAL_PROXY_INDEX)); |
+ __ Ldr(result, ContextMemOperand(result, Context::GLOBAL_OBJECT_INDEX)); |
+ __ Ldr(result, FieldMemOperand(result, JSGlobalObject::kGlobalProxyOffset)); |
__ B(&done); |
__ Bind(©_receiver); |