OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 ClassID { | 5 class ClassID { |
6 static int getID(Object value) native "ClassID_getID"; | 6 static int getID(Object value) native "ClassID_getID"; |
| 7 |
| 8 static int _lookup(String name) native "ClassID_byName"; |
| 9 |
| 10 static final int cidArray = _lookup('Array'); |
| 11 static final int cidExternalOneByteString = _lookup('ExternalOneByteString'); |
| 12 static final int cidGrowableObjectArray = _lookup('GrowableObjectArray'); |
| 13 static final int cidImmutableArray = _lookup('ImmutableArray'); |
| 14 static final int cidOneByteString = _lookup('OneByteString'); |
| 15 static final int cidTwoByteString = _lookup('TwoByteString'); |
| 16 static final int cidBigint = _lookup('Bigint'); |
7 } | 17 } |
OLD | NEW |