Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index c182dd0ce5800d8db1247fcdf9d4490c0881e6ca..3d9354a8f22daf3f6e2cd362ca43a67206208896 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -155,7 +155,15 @@ void FullCodeGenerator::Generate() { |
info->set_prologue_offset(masm_->pc_offset()); |
__ push(rbp); // Caller's frame pointer. |
__ movq(rbp, rsp); |
- __ push(rsi); // Callee's context. |
+ if (isolate()->is_memory_constrained()) { |
+ // This sequence marks pre-aged code. |
+ __ push(rsi); // Callee's context. |
+ __ nop(); |
+ } else { |
+ // This sequence marks non-aged code. |
+ __ nop(); |
+ __ push(rsi); // Callee's context |
+ } |
__ push(rdi); // Callee's JS Function. |
info->AddNoFrameRange(0, masm_->pc_offset()); |