Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index b19a3d0878a1205fae901f15d40badc07d9f0a31..8e8d8a4fc003c60ea5884dea623669b9a111c1aa 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -752,7 +752,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
const int kGlobalIndex = |
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
__ movq(rbx, FieldOperand(rsi, kGlobalIndex)); |
- __ movq(rbx, FieldOperand(rbx, GlobalObject::kGlobalContextOffset)); |
+ __ movq(rbx, FieldOperand(rbx, GlobalObject::kNativeContextOffset)); |
__ movq(rbx, FieldOperand(rbx, kGlobalIndex)); |
__ movq(rbx, FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); |
@@ -937,7 +937,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
const int kGlobalOffset = |
Context::kHeaderSize + Context::GLOBAL_INDEX * kPointerSize; |
__ movq(rbx, FieldOperand(rsi, kGlobalOffset)); |
- __ movq(rbx, FieldOperand(rbx, GlobalObject::kGlobalContextOffset)); |
+ __ movq(rbx, FieldOperand(rbx, GlobalObject::kNativeContextOffset)); |
__ movq(rbx, FieldOperand(rbx, kGlobalOffset)); |
__ movq(rbx, FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); |