| Index: src/compiler/mips/code-generator-mips.cc
|
| diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc
|
| index 61d57bc46e8cae6a0ddc4669b99f71d3e48220c6..f163180e87bc9efc09a0234f32a96d8a5adbd386 100644
|
| --- a/src/compiler/mips/code-generator-mips.cc
|
| +++ b/src/compiler/mips/code-generator-mips.cc
|
| @@ -707,8 +707,8 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
|
| BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
|
| Deoptimizer::BailoutType bailout_type =
|
| Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
|
| - CodeGenResult result =
|
| - AssembleDeoptimizerCall(deopt_state_id, bailout_type);
|
| + CodeGenResult result = AssembleDeoptimizerCall(
|
| + deopt_state_id, bailout_type, current_source_position_);
|
| if (result != kSuccess) return result;
|
| break;
|
| }
|
| @@ -1840,13 +1840,14 @@ void CodeGenerator::AssembleArchTableSwitch(Instruction* instr) {
|
| }
|
|
|
| CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
|
| - int deoptimization_id, Deoptimizer::BailoutType bailout_type) {
|
| + int deoptimization_id, Deoptimizer::BailoutType bailout_type,
|
| + SourcePosition pos) {
|
| Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
|
| isolate(), deoptimization_id, bailout_type);
|
| if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
|
| DeoptimizeReason deoptimization_reason =
|
| GetDeoptimizationReason(deoptimization_id);
|
| - __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id);
|
| + __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id);
|
| __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
|
| return kSuccess;
|
| }
|
|
|