Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Unified Diff: runtime/vm/flow_graph_compiler_dbc.cc

Issue 2388093003: VM: Make optimized try-catch work in DBC. (Closed)
Patch Set: address comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language_dbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698