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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 12042014: Revert "Introduce InvokeMathCFunction that can be used to directly invoke mathematical function pro… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « 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 bb0a98e22eb8a9da057420a6463471d911b94526..0c8c52166fa61ab027b70e025dbce49e3690b957 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -1550,11 +1550,6 @@ RawAbstractType* DoubleToDoubleInstr::CompileType() const {
}
-RawAbstractType* InvokeMathCFunctionInstr::CompileType() const {
- return Type::Double();
-}
-
-
RawAbstractType* CheckClassInstr::CompileType() const {
return AbstractType::null();
}
@@ -2621,61 +2616,6 @@ intptr_t CheckArrayBoundInstr::LengthOffsetFor(intptr_t class_id) {
}
}
-
-intptr_t InvokeMathCFunctionInstr::ArgumentCountFor(
- MethodRecognizer::Kind kind) {
- switch (kind) {
- case MethodRecognizer::kDoubleTruncate:
- case MethodRecognizer::kDoubleRound:
- case MethodRecognizer::kDoubleFloor:
- case MethodRecognizer::kDoubleCeil: {
- ASSERT(!CPUFeatures::double_truncate_round_supported());
- return 1;
- }
- case MethodRecognizer::kDoublePow:
- return 2;
- default:
- UNREACHABLE();
- }
- return 0;
-}
-
-
-extern const RuntimeEntry kPowRuntimeEntry(
- "libc_pow", reinterpret_cast<RuntimeFunction>(&pow), 0, true);
-
-extern const RuntimeEntry kFloorRuntimeEntry(
- "libc_floor", reinterpret_cast<RuntimeFunction>(&floor), 0, true);
-
-extern const RuntimeEntry kCeilRuntimeEntry(
- "libc_ceil", reinterpret_cast<RuntimeFunction>(&ceil), 0, true);
-
-extern const RuntimeEntry kTruncRuntimeEntry(
- "libc_trunc", reinterpret_cast<RuntimeFunction>(&trunc), 0, true);
-
-extern const RuntimeEntry kRoundRuntimeEntry(
- "libc_round", reinterpret_cast<RuntimeFunction>(&round), 0, true);
-
-
-const RuntimeEntry& InvokeMathCFunctionInstr::TargetFunction() const {
- switch (recognized_kind_) {
- case MethodRecognizer::kDoubleTruncate:
- return kTruncRuntimeEntry;
- case MethodRecognizer::kDoubleRound:
- return kRoundRuntimeEntry;
- case MethodRecognizer::kDoubleFloor:
- return kFloorRuntimeEntry;
- case MethodRecognizer::kDoubleCeil:
- return kCeilRuntimeEntry;
- case MethodRecognizer::kDoublePow:
- return kPowRuntimeEntry;
- default:
- UNREACHABLE();
- }
- return kPowRuntimeEntry;
-}
-
-
#undef __
} // namespace dart
« 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