Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 6c1fbf8b79da31f333fa2e48776bc498e08e060b..cf4db79efc1984163cf9cd28d9b6fd473916d9ef 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -1922,8 +1922,8 @@ void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { |
__ jmp(edx); |
__ bind(&set_global_proxy); |
- __ mov(ecx, GlobalObjectOperand()); |
- __ mov(ecx, FieldOperand(ecx, JSGlobalObject::kGlobalProxyOffset)); |
+ __ mov(ecx, NativeContextOperand()); |
+ __ mov(ecx, ContextOperand(ecx, Context::GLOBAL_PROXY_INDEX)); |
__ mov(receiver_operand, ecx); |
__ jmp(&valid_receiver, Label::kNear); |