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

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

Issue 2693863006: VM: Restore old implementation of ClassID.cid* fields (Closed)
Patch Set: Done Created 3 years, 10 months 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
« no previous file with comments | « runtime/lib/class_id.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 static int _lookup(String name) native "ClassID_byName"; 8 // VM injects class id constants into this class.
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');
17 } 9 }
OLDNEW
« no previous file with comments | « runtime/lib/class_id.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698