Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 8e8d8a4fc003c60ea5884dea623669b9a111c1aa..9e4153a86850702700e7bf0e80ebd8feb8619f83 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -750,7 +750,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; |
__ movq(rbx, FieldOperand(rsi, kGlobalIndex)); |
__ movq(rbx, FieldOperand(rbx, GlobalObject::kNativeContextOffset)); |
__ movq(rbx, FieldOperand(rbx, kGlobalIndex)); |
@@ -935,7 +935,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; |
__ movq(rbx, FieldOperand(rsi, kGlobalOffset)); |
__ movq(rbx, FieldOperand(rbx, GlobalObject::kNativeContextOffset)); |
__ movq(rbx, FieldOperand(rbx, kGlobalOffset)); |