Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index bb7cec4708de09f388c387fb945bf4ce9e806963..9bc15e90986c54048aa950b7bac9b3391ba0c0be 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -678,7 +678,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
// receiver. |
__ bind(&use_global_receiver); |
const int kGlobalIndex = |
- Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
+ Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; |
__ mov(ebx, FieldOperand(esi, kGlobalIndex)); |
__ mov(ebx, FieldOperand(ebx, GlobalObject::kNativeContextOffset)); |
__ mov(ebx, FieldOperand(ebx, kGlobalIndex)); |
@@ -856,7 +856,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
// Use the current global receiver object as the receiver. |
__ bind(&use_global_receiver); |
const int kGlobalOffset = |
- Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
+ Context::kHeaderSize + Context::GLOBAL_OBJECT_INDEX * kPointerSize; |
__ mov(ebx, FieldOperand(esi, kGlobalOffset)); |
__ mov(ebx, FieldOperand(ebx, GlobalObject::kNativeContextOffset)); |
__ mov(ebx, FieldOperand(ebx, kGlobalOffset)); |