Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index ef7b2448eff265e6225a0bb77e4f58f09bdf8aa8..c34acd6a5b8750c395d1fb69e40754c56d5b9f69 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -893,9 +893,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 ARM 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()->PushFixedFrame(r1); |
patcher->masm()->nop(ip.code()); |
@@ -942,7 +943,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); |
patcher.masm()->add(r0, pc, Operand(-8)); |
patcher.masm()->ldr(pc, MemOperand(pc, -4)); |
patcher.masm()->emit_code_stub_address(stub); |