Index: src/mips64/deoptimizer-mips64.cc |
diff --git a/src/mips64/deoptimizer-mips64.cc b/src/mips64/deoptimizer-mips64.cc |
index 24e690dfb360f3ddefeb4f34e3dd7d2a5ebc7615..8daba04ac73160db7d28638d2f6e0841f7930397 100644 |
--- a/src/mips64/deoptimizer-mips64.cc |
+++ b/src/mips64/deoptimizer-mips64.cc |
@@ -38,14 +38,15 @@ void Deoptimizer::PatchCodeForDeoptimization(Isolate* isolate, Code* code) { |
} else { |
pointer = code->instruction_start(); |
} |
- CodePatcher patcher(pointer, 1); |
+ CodePatcher patcher(isolate, pointer, 1); |
patcher.masm()->break_(0xCC); |
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()->break_(0xCC); |
} |
} |
@@ -66,7 +67,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, RelocInfo::NONE32); |
DCHECK(prev_call_address == NULL || |
call_address >= prev_call_address + patch_size()); |