Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 35cff704681525c38b7141732432850f9c86293c..09b127779a87c1e67ab7281f6993c93f4c56f28d 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -133,10 +133,10 @@ void FastNewContextStub::Generate(MacroAssembler* masm) { |
__ Set(rbx, 0); // Set to NULL. |
__ movq(Operand(rax, Context::SlotOffset(Context::CLOSURE_INDEX)), rcx); |
__ movq(Operand(rax, Context::SlotOffset(Context::FCONTEXT_INDEX)), rax); |
- __ movq(Operand(rax, Context::SlotOffset(Context::PREVIOUS_INDEX)), rbx); |
+ __ movq(Operand(rax, Context::SlotOffset(Context::PREVIOUS_INDEX)), rsi); |
__ movq(Operand(rax, Context::SlotOffset(Context::EXTENSION_INDEX)), rbx); |
- // Copy the global object from the surrounding context. |
+ // Copy the global object from the previous context. |
__ movq(rbx, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX))); |
__ movq(Operand(rax, Context::SlotOffset(Context::GLOBAL_INDEX)), rbx); |