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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 1662153002: VM: Support fast calls to atan and atan2 in optimized code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 10 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 | « no previous file | runtime/vm/intermediate_language.cc » ('j') | 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 848cdb06c77ccb5c5c6c7d9f5a474a8da902f982..e92721a45d743d3f5429e02922286ca778c44fb7 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -4563,12 +4563,13 @@ void FlowGraphOptimizer::VisitStaticCall(StaticCallInstr* call) {
ReplaceCall(call, min_max);
}
}
- } else if (recognized_kind == MethodRecognizer::kMathDoublePow) {
+ } else if ((recognized_kind == MethodRecognizer::kMathDoublePow) ||
+ (recognized_kind == MethodRecognizer::kMathAtan) ||
+ (recognized_kind == MethodRecognizer::kMathAtan2)) {
if (FLAG_precompilation) {
// No UnboxDouble instructons allowed.
return;
}
- // We know that first argument is double, the second is num.
// InvokeMathCFunctionInstr requires unboxed doubles. UnboxDouble
// instructions contain type checks and conversions to double.
ZoneGrowableArray<Value*>* args =
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698