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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2357343003: Fix lazy deoptimization in the presence of exceptions (Closed)
Patch Set: new test case Created 4 years, 3 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
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 79285e9619a9ae87be43529d3681e45fc65f9949..02363ef784f56b39559b9d33751679f79601859a 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -4321,7 +4321,8 @@ void EffectGraphVisitor::VisitTryCatchNode(TryCatchNode* node) {
try_handler_index,
catch_block->exception_var(),
catch_block->stacktrace_var(),
- catch_block->needs_stacktrace());
+ catch_block->needs_stacktrace(),
+ Thread::Current()->GetNextDeoptId());
owner()->AddCatchEntry(catch_entry);
AppendFragment(catch_entry, for_catch);
@@ -4367,7 +4368,8 @@ void EffectGraphVisitor::VisitTryCatchNode(TryCatchNode* node) {
catch_handler_index,
catch_block->exception_var(),
catch_block->stacktrace_var(),
- catch_block->needs_stacktrace());
+ catch_block->needs_stacktrace(),
+ Thread::Current()->GetNextDeoptId());
owner()->AddCatchEntry(finally_entry);
AppendFragment(finally_entry, for_finally);
}

Powered by Google App Engine
This is Rietveld 408576698