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

Side by Side Diff: vm/snapshot_ids.h

Issue 10869035: Add smi_type, mint_type and double_type to the predefined types list for script snapshots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 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 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 #ifndef VM_SNAPSHOT_IDS_H_ 5 #ifndef VM_SNAPSHOT_IDS_H_
6 #define VM_SNAPSHOT_IDS_H_ 6 #define VM_SNAPSHOT_IDS_H_
7 7
8 #include "vm/raw_object.h" 8 #include "vm/raw_object.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 // Index for predefined singleton objects used in a snapshot. 12 // Index for predefined singleton objects used in a snapshot.
13 enum { 13 enum {
14 kNullObject = 0, 14 kNullObject = 0,
15 kSentinelObject, 15 kSentinelObject,
16 kEmptyArrayObject, 16 kEmptyArrayObject,
17 kTrueValue, 17 kTrueValue,
18 kFalseValue, 18 kFalseValue,
19 kClassIdsOffset = kFalseValue, 19 kClassIdsOffset = kFalseValue,
20 20
21 // The class ids of predefined classes are included in this list 21 // The class ids of predefined classes are included in this list
22 // at an offset of kClassIdsOffset. 22 // at an offset of kClassIdsOffset.
23 23
24 kObjectType = (kNumPredefinedCids + kClassIdsOffset), 24 kObjectType = (kNumPredefinedCids + kClassIdsOffset),
25 kNullType, 25 kNullType,
26 kDynamicType, 26 kDynamicType,
27 kVoidType, 27 kVoidType,
28 kFunctionType, 28 kFunctionType,
29 kNumberType, 29 kNumberType,
30 kSmiType,
31 kMintType,
32 kDoubleType,
30 kDoubleInterface, 33 kDoubleInterface,
31 kIntInterface, 34 kIntInterface,
32 kBoolInterface, 35 kBoolInterface,
33 kStringInterface, 36 kStringInterface,
34 kListInterface, 37 kListInterface,
35 kByteArrayInterface, 38 kByteArrayInterface,
36 39
37 kInstanceObjectId, 40 kInstanceObjectId,
38 kMaxPredefinedObjectIds, 41 kMaxPredefinedObjectIds,
39 kInvalidIndex = -1, 42 kInvalidIndex = -1,
40 }; 43 };
41 44
42 } // namespace dart 45 } // namespace dart
43 46
44 #endif // VM_SNAPSHOT_IDS_H_ 47 #endif // VM_SNAPSHOT_IDS_H_
OLDNEW
« no previous file with comments | « vm/snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698