Index: runtime/vm/flow_graph_compiler_dbc.cc |
diff --git a/runtime/vm/flow_graph_compiler_dbc.cc b/runtime/vm/flow_graph_compiler_dbc.cc |
index 75bf2c54fa7547c9cb98eec14701d9117715e1ed..00fc026767ee305c6582db1e8014fe2ec6fc5475 100644 |
--- a/runtime/vm/flow_graph_compiler_dbc.cc |
+++ b/runtime/vm/flow_graph_compiler_dbc.cc |
@@ -194,10 +194,12 @@ void FlowGraphCompiler::RecordAfterCall(Instruction* instr) { |
// hence the difference. |
pending_deoptimization_env_->DropArguments(instr->ArgumentCount()); |
AddDeoptIndexAtCall(deopt_id_after); |
+ // This descriptor is needed for exception handling in optimized code. |
+ AddCurrentDescriptor(RawPcDescriptors::kOther, |
+ deopt_id_after, instr->token_pos()); |
} else { |
// Add deoptimization continuation point after the call and before the |
// arguments are removed. |
- // In optimized code this descriptor is needed for exception handling. |
AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
deopt_id_after, |
instr->token_pos()); |