Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index a559b62758ac88b4ff4ce0f6561cd96eefd172bb..1c52f009441ca134011143d95108b630683ab56c 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -43,7 +43,8 @@ namespace internal { |
static const byte kCallOpcode = 0xE8; |
-static const int kNoCodeAgeSequenceLength = 6; |
+// The length of pushq(rbp), movp(rbp, rsp), Push(rsi) and Push(rdi). |
+static const int kNoCodeAgeSequenceLength = kPointerSize == kInt64Size ? 6 : 17; |
void Assembler::emitl(uint32_t x) { |