| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index b9247779931a47c9c74b125cba00d4c30e7a1b46..c5f7f91cdde9dc2b791559fde645992936ba053c 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -910,8 +910,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;
|
| }
|
| @@ -2304,13 +2304,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;
|
| }
|
|
|