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

Unified Diff: runtime/lib/math_patch.dart

Issue 10829459: Deprecate Math object in corelib in favor of dart:math library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 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/bin/websocket_impl.dart ('k') | runtime/lib/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/math_patch.dart
diff --git a/runtime/lib/math_patch.dart b/runtime/lib/math_patch.dart
index 604e9db6a9f72fecd7f6285cb0c1003ab36115b8..1a4280bab7ef6e1987bc35f4bd1c218d7e01062d 100644
--- a/runtime/lib/math_patch.dart
+++ b/runtime/lib/math_patch.dart
@@ -3,15 +3,10 @@
// BSD-style license that can be found in the LICENSE file.
// A VM patch of the dart:math library.
-
patch int parseInt(String str) => MathNatives.parseInt(str);
-
patch double parseDouble(String str) => MathNatives.parseDouble(str);
-
-patch double atan2(num a, num b) => MathNatives.atan2(a, b);
-
patch num pow(num x, num exponent) => MathNatives.pow(x, exponent);
-
+patch double atan2(num a, num b) => MathNatives.atan2(a, b);
patch double sin(num x) => MathNatives.sin(x);
patch double cos(num x) => MathNatives.cos(x);
patch double tan(num x) => MathNatives.tan(x);
@@ -43,7 +38,7 @@ class _Random implements Random {
var _state;
_Random._internal(this._state);
-
+
// The algorithm used here is Multiply with Carry (MWC) with a Base b = 2^32.
// http://en.wikipedia.org/wiki/Multiply-with-carry
// The constant A is selected from "Numerical Recipes 3rd Edition" p.348 B1.
« no previous file with comments | « runtime/bin/websocket_impl.dart ('k') | runtime/lib/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698