| Index: src/compiler/mips64/code-generator-mips64.cc
|
| diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc
|
| index 7a964801bbe03eff3d0dffa53b815784754beb16..fa8bb31d258ce9bb953867da80c57b3ea9248a08 100644
|
| --- a/src/compiler/mips64/code-generator-mips64.cc
|
| +++ b/src/compiler/mips64/code-generator-mips64.cc
|
| @@ -716,8 +716,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;
|
| }
|
| @@ -2161,13 +2161,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;
|
| }
|
|
|