Index: src/ppc/deoptimizer-ppc.cc |
diff --git a/src/ppc/deoptimizer-ppc.cc b/src/ppc/deoptimizer-ppc.cc |
index 831ccf6cdc6286ccc7a2ed3056a2adb34a939c25..4232342b930cd80701ba2bd00f3b3bf5333bfcef 100644 |
--- a/src/ppc/deoptimizer-ppc.cc |
+++ b/src/ppc/deoptimizer-ppc.cc |
@@ -45,14 +45,15 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
} else { |
pointer = code->instruction_start(); |
} |
- CodePatcher patcher(pointer, 1); |
+ CodePatcher patcher(isolate, pointer, 1); |
patcher.masm()->bkpt(0); |
DeoptimizationInputData* data = |
DeoptimizationInputData::cast(code->deoptimization_data()); |
int osr_offset = data->OsrPcOffset()->value(); |
if (osr_offset > 0) { |
- CodePatcher osr_patcher(code->instruction_start() + osr_offset, 1); |
+ CodePatcher osr_patcher(isolate, code->instruction_start() + osr_offset, |
+ 1); |
osr_patcher.masm()->bkpt(0); |
} |
} |
@@ -75,7 +76,7 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
int call_size_in_words = call_size_in_bytes / Assembler::kInstrSize; |
DCHECK(call_size_in_bytes % Assembler::kInstrSize == 0); |
DCHECK(call_size_in_bytes <= patch_size()); |
- CodePatcher patcher(call_address, call_size_in_words); |
+ CodePatcher patcher(isolate, call_address, call_size_in_words); |
patcher.masm()->Call(deopt_entry, kRelocInfo_NONEPTR); |
DCHECK(prev_call_address == NULL || |
call_address >= prev_call_address + patch_size()); |