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

Side by Side Diff: vm/snapshot_ids.h

Issue 10827209: Unify class ids and snapshot object ids list so that we don't have disparate and sometimes confusin… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « vm/snapshot.cc ('k') | vm/stub_code_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef VM_SNAPSHOT_IDS_H_
6 #define VM_SNAPSHOT_IDS_H_
7
8 #include "vm/raw_object.h"
9
10 namespace dart {
11
12 // Index for predefined singleton objects used in a snapshot.
13 enum {
14 kNullObject = 0,
15 kSentinelObject,
16 kTrueValue,
17 kFalseValue,
18 kClassIdsOffset = kFalseValue,
19
20 // The class ids of predefined classes are included in this list
21 // at an offset of kClassIdsOffset.
22
23 kObjectType = (kNumPredefinedCids + kClassIdsOffset),
24 kNullType,
25 kDynamicType,
26 kVoidType,
27 kFunctionInterface,
28 kNumberInterface,
29 kDoubleInterface,
30 kIntInterface,
31 kBoolInterface,
32 kStringInterface,
33 kListInterface,
34 kByteArrayInterface,
35
36 kInstanceObjectId,
37 kMaxPredefinedObjectIds,
38 kInvalidIndex = -1,
39 };
40
41 } // namespace dart
42
43 #endif // VM_SNAPSHOT_IDS_H_
OLDNEW
« no previous file with comments | « vm/snapshot.cc ('k') | vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698