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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 2877713003: Eliminated with_checks variable (Closed)
Patch Set: Method to construct static call from instance call Created 3 years, 7 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_type_propagator.cc
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc
index be1366cdbf26d777d90435cf2861f4d09008583e..0a60fdfff8d58fa0ff04ee17c3978c7d2cdacce5 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -1022,7 +1022,9 @@ CompileType StaticCallInstr::ComputeType() const {
return CompileType::FromAbstractType(result_type);
}
- return CompileType::Dynamic();
+ return (function_.recognized_kind() != MethodRecognizer::kUnknown)
+ ? CompileType::FromCid(MethodRecognizer::ResultCid(function_))
+ : CompileType::Dynamic();
}

Powered by Google App Engine
This is Rietveld 408576698