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 066c70cccefc313697ad759d93fe7a9273db9ebb..bff9c043016c5c3c95d5b415b4fea0facfc72f7b 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -5799,8 +5799,8 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) { |
__ Bind(&global_object); |
__ Ldr(result, FieldMemOperand(function, JSFunction::kContextOffset)); |
- __ Ldr(result, ContextMemOperand(result, Context::GLOBAL_OBJECT_INDEX)); |
- __ Ldr(result, FieldMemOperand(result, JSGlobalObject::kGlobalProxyOffset)); |
+ __ Ldr(result, ContextMemOperand(result, Context::NATIVE_CONTEXT_INDEX)); |
+ __ Ldr(result, ContextMemOperand(result, Context::GLOBAL_PROXY_INDEX)); |
__ B(&done); |
__ Bind(©_receiver); |