OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 @patch List makeListFixedLength(List growableList) | 5 @patch List makeListFixedLength(List growableList) |
6 native "Internal_makeListFixedLength"; | 6 native "Internal_makeListFixedLength"; |
7 | 7 |
8 @patch List makeFixedListUnmodifiable(List fixedLengthList) | 8 @patch List makeFixedListUnmodifiable(List fixedLengthList) |
9 native "Internal_makeFixedListUnmodifiable"; | 9 native "Internal_makeFixedListUnmodifiable"; |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 static var packageRootUriFuture; | 28 static var packageRootUriFuture; |
29 static var packageConfigUriFuture; | 29 static var packageConfigUriFuture; |
30 static var resolvePackageUriFuture; | 30 static var resolvePackageUriFuture; |
31 | 31 |
32 static var platformScript; | 32 static var platformScript; |
33 } | 33 } |
34 | 34 |
35 final bool is64Bit = _inquireIs64Bit(); | 35 final bool is64Bit = _inquireIs64Bit(); |
36 | 36 |
37 bool _inquireIs64Bit() native "Internal_inquireIs64Bit"; | 37 bool _inquireIs64Bit() native "Internal_inquireIs64Bit"; |
| 38 |
| 39 bool _classRangeCheck(int cid, int lowerLimit, int upperLimit) { |
| 40 return cid >= lowerLimit && cid <= upperLimit; |
| 41 } |
| 42 |
| 43 bool _classRangeCheckNegative(int cid, int lowerLimit, int upperLimit) { |
| 44 return cid < lowerLimit || cid > upperLimit; |
| 45 } |
OLD | NEW |