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

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: cleanup Created 4 years, 11 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') | runtime/vm/intermediate_language.cc » ('J')
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..9124bdc9eee5d4d40723a1b2fe5c2498ad69cb7b 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -4563,7 +4563,9 @@ 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;
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698