| Index: src/mips/codegen-mips.cc
|
| diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc
|
| index 57b87a51f49cbc2e38126ee9994a9219ffdea437..2a144d990c8fe9591677ffcf5cb0fc16f07e638c 100644
|
| --- a/src/mips/codegen-mips.cc
|
| +++ b/src/mips/codegen-mips.cc
|
| @@ -1196,9 +1196,10 @@ CodeAgingHelper::CodeAgingHelper(Isolate* isolate) {
|
| // to avoid overloading the stack in stress conditions.
|
| // DONT_FLUSH is used because the CodeAgingHelper is initialized early in
|
| // the process, before MIPS simulator ICache is setup.
|
| - base::SmartPointer<CodePatcher> patcher(new CodePatcher(
|
| - young_sequence_.start(), young_sequence_.length() / Assembler::kInstrSize,
|
| - CodePatcher::DONT_FLUSH));
|
| + base::SmartPointer<CodePatcher> patcher(
|
| + new CodePatcher(isolate, young_sequence_.start(),
|
| + young_sequence_.length() / Assembler::kInstrSize,
|
| + CodePatcher::DONT_FLUSH));
|
| PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length());
|
| patcher->masm()->Push(ra, fp, cp, a1);
|
| patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP);
|
| @@ -1245,7 +1246,8 @@ void Code::PatchPlatformCodeAge(Isolate* isolate,
|
| Assembler::FlushICache(isolate, sequence, young_length);
|
| } else {
|
| Code* stub = GetCodeAgeStub(isolate, age, parity);
|
| - CodePatcher patcher(sequence, young_length / Assembler::kInstrSize);
|
| + CodePatcher patcher(isolate, sequence,
|
| + young_length / Assembler::kInstrSize);
|
| // Mark this code sequence for FindPlatformCodeAgeSequence().
|
| patcher.masm()->nop(Assembler::CODE_AGE_MARKER_NOP);
|
| // Load the stub address to t9 and call it,
|
|
|