Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index 7a7ec7bff2400e19ca10fd8b6ce0a18fad88d1cb..9643872a8c2bd35dced45bdc9a8a12a6fdbc63d2 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -27,7 +27,7 @@ |
#include "v8.h" |
-#if defined(V8_TARGET_ARCH_X64) |
+#if V8_TARGET_ARCH_X64 |
#include "codegen.h" |
#include "macro-assembler.h" |
@@ -735,7 +735,11 @@ void Code::PatchPlatformCodeAge(byte* sequence, |
Code* stub = GetCodeAgeStub(age, parity); |
CodePatcher patcher(sequence, young_length); |
patcher.masm()->call(stub->instruction_start()); |
- patcher.masm()->nop(); |
+ for (int i = 0; |
+ i < kNoCodeAgeSequenceLength - Assembler::kShortCallInstructionLength; |
+ i++) { |
+ patcher.masm()->nop(); |
+ } |
} |
} |