Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index bb836b96b448b82147d576ba25ef19619761250b..3d8133830496d6b8b41ad34a0098871a209fa956 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.cc |
@@ -42,16 +42,21 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
} else { |
pointer = code->instruction_start(); |
} |
- CodePatcher patcher(isolate, pointer, 1); |
- patcher.masm()->bkpt(0); |
+ |
+ { |
+ PatchingAssembler patcher(Assembler::IsolateData(isolate), pointer, 1); |
+ patcher.bkpt(0); |
+ patcher.FlushICache(isolate); |
+ } |
DeoptimizationInputData* data = |
DeoptimizationInputData::cast(code->deoptimization_data()); |
int osr_offset = data->OsrPcOffset()->value(); |
if (osr_offset > 0) { |
- CodePatcher osr_patcher(isolate, code->instruction_start() + osr_offset, |
- 1); |
- osr_patcher.masm()->bkpt(0); |
+ PatchingAssembler patcher(Assembler::IsolateData(isolate), |
+ code->instruction_start() + osr_offset, 1); |
+ patcher.bkpt(0); |
+ patcher.FlushICache(isolate); |
} |
} |