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