Index: src/crankshaft/x64/lithium-codegen-x64.cc |
diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc |
index 4e77aa1e14783099c241ac01130c4288d7392924..ae476e1bfae7b79bf7c4c93637a01ac24845a87a 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -3266,10 +3266,8 @@ void LCodeGen::DoWrapReceiver(LWrapReceiver* instr) { |
__ jmp(&receiver_ok, Label::kNear); |
__ bind(&global_object); |
__ movp(receiver, FieldOperand(function, JSFunction::kContextOffset)); |
- __ movp(receiver, |
- Operand(receiver, |
- Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
- __ movp(receiver, FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
+ __ movp(receiver, ContextOperand(receiver, Context::NATIVE_CONTEXT_INDEX)); |
+ __ movp(receiver, ContextOperand(receiver, Context::GLOBAL_PROXY_INDEX)); |
__ bind(&receiver_ok); |
} |