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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 2273943002: VM: More refactoring of recognized methods inlining. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 5c83aa918b227f4abc010b62355d72d5634de9f1..a390ed6b658279ac1c63f0a6fa8f36811741f138 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -3807,24 +3807,9 @@ const RuntimeEntry& InvokeMathCFunctionInstr::TargetFunction() const {
}
-const RuntimeEntry& MathUnaryInstr::TargetFunction() const {
- switch (kind()) {
- case MathUnaryInstr::kSin:
- return kLibcSinRuntimeEntry;
- case MathUnaryInstr::kCos:
- return kLibcCosRuntimeEntry;
- default:
- UNREACHABLE();
- }
- return kLibcSinRuntimeEntry;
-}
-
-
const char* MathUnaryInstr::KindToCString(MathUnaryKind kind) {
switch (kind) {
case kIllegal: return "illegal";
- case kSin: return "sin";
- case kCos: return "cos";
case kSqrt: return "sqrt";
case kDoubleSquare: return "double-square";
}
@@ -3853,10 +3838,10 @@ MergedMathInstr::MergedMathInstr(ZoneGrowableArray<Value*>* inputs,
}
-intptr_t MergedMathInstr::OutputIndexOf(intptr_t kind) {
+intptr_t MergedMathInstr::OutputIndexOf(MethodRecognizer::Kind kind) {
switch (kind) {
- case MathUnaryInstr::kSin: return 1;
- case MathUnaryInstr::kCos: return 0;
+ case MethodRecognizer::kMathSin: return 1;
+ case MethodRecognizer::kMathCos: return 0;
default: UNIMPLEMENTED(); return -1;
}
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698