Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 9473a925ae73d8a1cf7457c008363d4e68b7253d..9c61c5f7ee1b48eca24846fe0335deef711f4db4 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1921,8 +1921,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); |