Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 1d3045231ae5dc390113b5ac2b04fe1fc3e8d625..f0efb3220ff723700642ec1e3d0fb7e1a9beb758 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -188,7 +188,8 @@ Handle<Code> CodeGenerator::GenerateCode() { |
// Assemble all eager deoptimization exits. |
for (DeoptimizationExit* exit : deoptimization_exits_) { |
masm()->bind(exit->label()); |
- AssembleDeoptimizerCall(exit->deoptimization_id(), Deoptimizer::EAGER); |
+ AssembleDeoptimizerCall(exit->deoptimization_id(), Deoptimizer::EAGER, |
+ exit->pos()); |
} |
// Ensure there is space for lazy deoptimization in the code. |
@@ -931,8 +932,8 @@ DeoptimizationExit* CodeGenerator::AddDeoptimizationExit( |
Instruction* instr, size_t frame_state_offset) { |
int const deoptimization_id = BuildTranslation( |
instr, -1, frame_state_offset, OutputFrameStateCombine::Ignore()); |
- DeoptimizationExit* const exit = |
- new (zone()) DeoptimizationExit(deoptimization_id); |
+ DeoptimizationExit* const exit = new (zone()) |
+ DeoptimizationExit(deoptimization_id, current_source_position_); |
deoptimization_exits_.push_back(exit); |
return exit; |
} |