Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index e9e6621d2cac745cf5d9512289495c93ed415b3a..38691f57774e864f7439f1c48d29256e611c384b 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -753,8 +753,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; |
} |
@@ -1621,7 +1621,8 @@ 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); |
// TODO(turbofan): We should be able to generate better code by sharing the |
@@ -1630,7 +1631,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |
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); |
__ CheckConstPool(false, false); |
return kSuccess; |