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 ae476e1bfae7b79bf7c4c93637a01ac24845a87a..4e77aa1e14783099c241ac01130c4288d7392924 100644 |
--- a/src/crankshaft/x64/lithium-codegen-x64.cc |
+++ b/src/crankshaft/x64/lithium-codegen-x64.cc |
@@ -3266,8 +3266,10 @@ |
__ jmp(&receiver_ok, Label::kNear); |
__ bind(&global_object); |
__ movp(receiver, FieldOperand(function, JSFunction::kContextOffset)); |
- __ movp(receiver, ContextOperand(receiver, Context::NATIVE_CONTEXT_INDEX)); |
- __ movp(receiver, ContextOperand(receiver, Context::GLOBAL_PROXY_INDEX)); |
+ __ movp(receiver, |
+ Operand(receiver, |
+ Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
+ __ movp(receiver, FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); |
__ bind(&receiver_ok); |
} |