| 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 #include "vm/dart_entry.h" |
| 9 | 10 |
| 10 namespace dart { | 11 namespace dart { |
| 11 | 12 |
| 12 // Index for predefined singleton objects used in a snapshot. | 13 // Index for predefined singleton objects used in a snapshot. |
| 13 enum { | 14 enum { |
| 14 kNullObject = 0, | 15 kNullObject = 0, |
| 15 kSentinelObject, | 16 kSentinelObject, |
| 16 kTransitionSentinelObject, | 17 kTransitionSentinelObject, |
| 17 kEmptyArrayObject, | 18 kEmptyArrayObject, |
| 18 kZeroArrayObject, | 19 kZeroArrayObject, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 kDoubleType, | 40 kDoubleType, |
| 40 kIntType, | 41 kIntType, |
| 41 kBoolType, | 42 kBoolType, |
| 42 kStringType, | 43 kStringType, |
| 43 kArrayType, | 44 kArrayType, |
| 44 | 45 |
| 45 kExtractorParameterTypes, | 46 kExtractorParameterTypes, |
| 46 kExtractorParameterNames, | 47 kExtractorParameterNames, |
| 47 kEmptyContextScopeObject, | 48 kEmptyContextScopeObject, |
| 48 kImplicitClosureScopeObject, | 49 kImplicitClosureScopeObject, |
| 50 kEmptyObjectPool, |
| 51 kEmptyDescriptors, |
| 52 kEmptyVarDescriptors, |
| 53 kEmptyExceptionHandlers, |
| 54 kCachedArgumentsDescriptor0, |
| 55 kCachedArgumentsDescriptorN = (kCachedArgumentsDescriptor0 + |
| 56 ArgumentsDescriptor::kCachedDescriptorCount - 1), |
| 49 | 57 |
| 50 kInstanceObjectId, | 58 kInstanceObjectId, |
| 51 kStaticImplicitClosureObjectId, | 59 kStaticImplicitClosureObjectId, |
| 52 kMaxPredefinedObjectIds, | 60 kMaxPredefinedObjectIds, |
| 53 kInvalidIndex = -1, | 61 kInvalidIndex = -1, |
| 54 }; | 62 }; |
| 55 | 63 |
| 56 } // namespace dart | 64 } // namespace dart |
| 57 | 65 |
| 58 #endif // VM_SNAPSHOT_IDS_H_ | 66 #endif // VM_SNAPSHOT_IDS_H_ |
| OLD | NEW |