| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class _Double implements double { | 5 class _Double extends _Num implements double { |
| 6 factory _Double.fromInteger(int value) | 6 factory _Double.fromInteger(int value) |
| 7 native "Double_doubleFromInteger"; | 7 native "Double_doubleFromInteger"; |
| 8 | 8 |
| 9 Type get runtimeType => double; | 9 Type get runtimeType => double; |
| 10 | 10 |
| 11 int get _identityHashCode { | 11 int get _identityHashCode { |
| 12 if (isNaN || isInfinite) return 0; | 12 if (isNaN || isInfinite) return 0; |
| 13 return toInt(); | 13 return toInt(); |
| 14 } | 14 } |
| 15 double operator +(num other) { | 15 double operator +(num other) { |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 return EQUAL; | 236 return EQUAL; |
| 237 } | 237 } |
| 238 } else if (isNaN) { | 238 } else if (isNaN) { |
| 239 return other.isNaN ? EQUAL : GREATER; | 239 return other.isNaN ? EQUAL : GREATER; |
| 240 } else { | 240 } else { |
| 241 // Other is NaN. | 241 // Other is NaN. |
| 242 return LESS; | 242 return LESS; |
| 243 } | 243 } |
| 244 } | 244 } |
| 245 } | 245 } |
| OLD | NEW |