| Index: src/ia32/macro-assembler-ia32.cc | 
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc | 
| index 4ebaa27fe2379ab69696a6e7d0d1f394ad805cf6..83aef7801a70bc663815a9270b61eb5b9df33af1 100644 | 
| --- a/src/ia32/macro-assembler-ia32.cc | 
| +++ b/src/ia32/macro-assembler-ia32.cc | 
| @@ -999,7 +999,7 @@ void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg, | 
| } | 
|  | 
| // Check if both contexts are the same. | 
| -  cmp(scratch, FieldOperand(holder_reg, JSGlobalProxy::kContextOffset)); | 
| +  cmp(scratch, FieldOperand(holder_reg, JSGlobalProxy::kNativeContextOffset)); | 
| j(equal, &same_contexts); | 
|  | 
| // Compare security tokens, save holder_reg on the stack so we can use it | 
| @@ -1010,7 +1010,8 @@ void MacroAssembler::CheckAccessGlobalProxy(Register holder_reg, | 
| // Check that the security token in the calling global object is | 
| // compatible with the security token in the receiving global | 
| // object. | 
| -  mov(holder_reg, FieldOperand(holder_reg, JSGlobalProxy::kContextOffset)); | 
| +  mov(holder_reg, | 
| +      FieldOperand(holder_reg, JSGlobalProxy::kNativeContextOffset)); | 
|  | 
| // Check the context is a native context. | 
| if (emit_debug_code()) { | 
|  |