Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 5c209ed9a4fecd7d8e78326d74f34ff2675fbd5d..bb7cec4708de09f388c387fb945bf4ce9e806963 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -680,7 +680,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
const int kGlobalIndex = |
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
__ mov(ebx, FieldOperand(esi, kGlobalIndex)); |
- __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalContextOffset)); |
+ __ mov(ebx, FieldOperand(ebx, GlobalObject::kNativeContextOffset)); |
__ mov(ebx, FieldOperand(ebx, kGlobalIndex)); |
__ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset)); |
@@ -858,7 +858,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
const int kGlobalOffset = |
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
__ mov(ebx, FieldOperand(esi, kGlobalOffset)); |
- __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalContextOffset)); |
+ __ mov(ebx, FieldOperand(ebx, GlobalObject::kNativeContextOffset)); |
__ mov(ebx, FieldOperand(ebx, kGlobalOffset)); |
__ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset)); |