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

Unified Diff: test/dart_codegen/expect/math/math

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« no previous file with comments | « test/dart_codegen/expect/math/jenkins_smi_hash.dart ('k') | test/dart_codegen/expect/math/point.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/math/math
diff --git a/test/dart_codegen/expect/math/math b/test/dart_codegen/expect/math/math
deleted file mode 100644
index 1f64b03ee514a0f24388fb4012f7ea891e95e1b0..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/math/math
+++ /dev/null
@@ -1,58 +0,0 @@
-library dart.math;
-import 'package:dev_compiler/runtime/dart_logging_runtime.dart' as DEVC$RT;
-part "jenkins_smi_hash.dart";
- part "point.dart";
- part "random.dart";
- part "rectangle.dart";
- const double E = 2.718281828459045;
- const double LN10 = 2.302585092994046;
- const double LN2 = 0.6931471805599453;
- const double LOG2E = 1.4426950408889634;
- const double LOG10E = 0.4342944819032518;
- const double PI = 3.1415926535897932;
- const double SQRT1_2 = 0.7071067811865476;
- const double SQRT2 = 1.4142135623730951;
- num min(num a, num b) {
- if (a is! num) throw new ArgumentError(a);
- if (b is! num) throw new ArgumentError(b);
- if (a > b) return b;
- if (a < b) return a;
- if (b is double) {
- if (a is double) {
- if (a == 0.0) {
- return (a + b) * a * b;
- }
- }
- if (a == 0 && b.isNegative || b.isNaN) return b;
- return a;
- }
- return a;
- }
- num max(num a, num b) {
- if (a is! num) throw new ArgumentError(a);
- if (b is! num) throw new ArgumentError(b);
- if (a > b) return a;
- if (a < b) return b;
- if (b is double) {
- if (a is double) {
- if (a == 0.0) {
- return a + b;
- }
- }
- if (b.isNaN) return b;
- return a;
- }
- if (b == 0 && a.isNegative) return b;
- return a;
- }
- external double atan2(num a, num b) ;
- external num pow(num x, num exponent) ;
- external double sin(num x) ;
- external double cos(num x) ;
- external double tan(num x) ;
- external double acos(num x) ;
- external double asin(num x) ;
- external double atan(num x) ;
- external double sqrt(num x) ;
- external double exp(num x) ;
- external double log(num x) ;
« no previous file with comments | « test/dart_codegen/expect/math/jenkins_smi_hash.dart ('k') | test/dart_codegen/expect/math/point.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698