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 // Dart core library. | 4 // Dart core library. |
5 | 5 |
6 // VM implementation of int. | 6 // VM implementation of int. |
7 | 7 |
| 8 import 'dart:_internal' as internal; |
| 9 |
8 @patch class int { | 10 @patch class int { |
9 | 11 |
10 @patch const factory int.fromEnvironment(String name, | 12 @patch const factory int.fromEnvironment(String name, |
11 {int defaultValue}) | 13 {int defaultValue}) |
12 native "Integer_fromEnvironment"; | 14 native "Integer_fromEnvironment"; |
13 | 15 |
14 | 16 |
15 static int _tryParseSmi(String str, int first, int last) { | 17 static int _tryParseSmi(String str, int first, int last) { |
16 assert(first <= last); | 18 assert(first <= last); |
17 var ix = first; | 19 var ix = first; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 6, 594823321, 12, 353814783205469041, | 204 6, 594823321, 12, 353814783205469041, |
203 6, 729000000, 12, 531441000000000000, /* radix: 30 */ | 205 6, 729000000, 12, 531441000000000000, /* radix: 30 */ |
204 6, 887503681, 12, 787662783788549761, | 206 6, 887503681, 12, 787662783788549761, |
205 6, 1073741824, 12, 1152921504606846976, | 207 6, 1073741824, 12, 1152921504606846976, |
206 5, 39135393, 12, 1667889514952984961, | 208 5, 39135393, 12, 1667889514952984961, |
207 5, 45435424, 12, 2386420683693101056, | 209 5, 45435424, 12, 2386420683693101056, |
208 5, 52521875, 12, 3379220508056640625, /* radix: 35 */ | 210 5, 52521875, 12, 3379220508056640625, /* radix: 35 */ |
209 5, 60466176, 11, 131621703842267136, | 211 5, 60466176, 11, 131621703842267136, |
210 ]; | 212 ]; |
211 } | 213 } |
OLD | NEW |