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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 1450973002: Enable deferred deoptimization always. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index feb72c182727dddb0a72b8a412e2644f09e3e015..421ff45e2782d026f022a4749d8174503c4b4111 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -4654,14 +4654,10 @@ void FlowGraphOptimizer::VisitStoreInstanceField(
}
}
field.set_is_unboxing_candidate(false);
- if (Compiler::IsBackgroundCompilation()) {
- // Delay deoptimization of dependent code to the code installation time.
- // The invalidation of the background compilation result occurs only
- // when the deoptimization is triggered at code installation.
- flow_graph()->deoptimize_dependent_code().Add(&field);
- } else {
- field.DeoptimizeDependentCode();
- }
+ // Delay deoptimization of dependent code to the code installation time.
+ // The invalidation of the background compilation result occurs only
+ // when the deoptimization is triggered at code installation.
+ flow_graph()->deoptimize_dependent_code().Add(&field);
} else {
FlowGraph::AddToGuardedFields(flow_graph_->guarded_fields(), &field);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698