Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index fd2994b37b0b3320687d56239b9eda0b9ec2bae3..67de433482f9aca366ec8aefb8f0ba69710e8a67 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -743,8 +743,8 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
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; |
} |
@@ -2238,13 +2238,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; |
} |