OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 part of dart.core_patch; | 5 part of dart.core_patch; |
6 | 6 |
7 class _DoubleImpl implements double { | 7 class _DoubleImpl implements double { |
8 int get hashCode => identityHashCode(this); | 8 int get hashCode => identityHashCode(this); |
9 | 9 |
10 @fletch.native external num operator -(); | 10 @fletch.native external num operator -(); |
11 | 11 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 bool _compareEqFromInteger(int other) => other.toDouble() == this; | 196 bool _compareEqFromInteger(int other) => other.toDouble() == this; |
197 | 197 |
198 bool _compareLtFromInteger(int other) => other.toDouble() < this; | 198 bool _compareLtFromInteger(int other) => other.toDouble() < this; |
199 | 199 |
200 bool _compareLeFromInteger(int other) => other.toDouble() <= this; | 200 bool _compareLeFromInteger(int other) => other.toDouble() <= this; |
201 | 201 |
202 bool _compareGtFromInteger(int other) => other.toDouble() > this; | 202 bool _compareGtFromInteger(int other) => other.toDouble() > this; |
203 | 203 |
204 bool _compareGeFromInteger(int other) => other.toDouble() >= this; | 204 bool _compareGeFromInteger(int other) => other.toDouble() >= this; |
205 } | 205 } |
OLD | NEW |