| OLD | NEW |
| 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 kZeroArrayObject, |
| 17 kTrueValue, | 18 kTrueValue, |
| 18 kFalseValue, | 19 kFalseValue, |
| 19 kClassIdsOffset = kFalseValue, | 20 kClassIdsOffset = kFalseValue, |
| 20 | 21 |
| 21 // The class ids of predefined classes are included in this list | 22 // The class ids of predefined classes are included in this list |
| 22 // at an offset of kClassIdsOffset. | 23 // at an offset of kClassIdsOffset. |
| 23 | 24 |
| 24 kObjectType = (kNumPredefinedCids + kClassIdsOffset), | 25 kObjectType = (kNumPredefinedCids + kClassIdsOffset), |
| 25 kNullType, | 26 kNullType, |
| 26 kDynamicType, | 27 kDynamicType, |
| 27 kVoidType, | 28 kVoidType, |
| 28 kFunctionType, | 29 kFunctionType, |
| 29 kNumberType, | 30 kNumberType, |
| 30 kSmiType, | 31 kSmiType, |
| 31 kMintType, | 32 kMintType, |
| 32 kDoubleType, | 33 kDoubleType, |
| 33 kIntType, | 34 kIntType, |
| 34 kBoolType, | 35 kBoolType, |
| 35 kStringType, | 36 kStringType, |
| 36 kArrayType, | 37 kArrayType, |
| 37 | 38 |
| 38 kInstanceObjectId, | 39 kInstanceObjectId, |
| 39 kMaxPredefinedObjectIds, | 40 kMaxPredefinedObjectIds, |
| 40 kInvalidIndex = -1, | 41 kInvalidIndex = -1, |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace dart | 44 } // namespace dart |
| 44 | 45 |
| 45 #endif // VM_SNAPSHOT_IDS_H_ | 46 #endif // VM_SNAPSHOT_IDS_H_ |
| OLD | NEW |