Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: runtime/lib/class_id.dart

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698