Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index aa9d2b1cc4bde89e48d9b84857505436d3785bb5..b8e496c09aa6c709f2fe0ba19ffac3bd437da248 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -646,8 +646,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; |
} |
@@ -1783,13 +1783,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; |
} |