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

Side by Side Diff: compiler/lib/implementation/math_natives.dart

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: junit tests fixed Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « compiler/lib/implementation/isolate.js ('k') | compiler/lib/implementation/math_natives.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Dart core library.
6
7 class MathNatives {
8 static double cos(num d) native;
9 static double sin(num d) native;
10 static double tan(num d) native;
11 static double acos(num d) native;
12 static double asin(num d) native;
13 static double atan(num d) native;
14 static double atan2(num a, num b) native;
15 static double sqrt(num d) native;
16 static double exp(num d) native;
17 static double log(num d) native;
18 static double pow(num d1, num d2) native;
19 static double random() native;
20 static int parseInt(String str) native;
21 static double parseDouble(String str) native;
22
23 static BadNumberFormatException _newBadNumberFormat(x) native {
24 return new BadNumberFormatException(x);
25 }
26 }
OLDNEW
« no previous file with comments | « compiler/lib/implementation/isolate.js ('k') | compiler/lib/implementation/math_natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698