Chromium Code Reviews| Index: src/x64/codegen-x64.cc |
| =================================================================== |
| --- src/x64/codegen-x64.cc (revision 15357) |
| +++ src/x64/codegen-x64.cc (working copy) |
| @@ -735,7 +735,11 @@ |
| 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(); |
| + } |
| } |
| } |