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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
10 #include "vm/token.h" | 10 #include "vm/token.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Illegal class id. | 110 // Illegal class id. |
111 kIllegalCid = 0, | 111 kIllegalCid = 0, |
112 | 112 |
113 // List of Ids for predefined classes. | 113 // List of Ids for predefined classes. |
114 #define DEFINE_OBJECT_KIND(clazz) \ | 114 #define DEFINE_OBJECT_KIND(clazz) \ |
115 k##clazz##Cid, | 115 k##clazz##Cid, |
116 CLASS_LIST(DEFINE_OBJECT_KIND) | 116 CLASS_LIST(DEFINE_OBJECT_KIND) |
117 #undef DEFINE_OBJECT_KIND | 117 #undef DEFINE_OBJECT_KIND |
118 | 118 |
119 // The following entries do not describe a predefined class, but instead | 119 // The following entries do not describe a predefined class, but instead |
120 // are class indexes for pre-allocated instance (Null, Dynamic and Void). | 120 // are class indexes for pre-allocated instance (Null, dynamic and Void). |
121 kNullCid, | 121 kNullCid, |
122 kDynamicCid, | 122 kDynamicCid, |
123 kVoidCid, | 123 kVoidCid, |
124 | 124 |
125 // The following entry does not describe a real class, but instead it is an | 125 // The following entry does not describe a real class, but instead it is an |
126 // id which is used to identify free list elements in the heap. | 126 // id which is used to identify free list elements in the heap. |
127 kFreeListElement, | 127 kFreeListElement, |
128 | 128 |
129 kNumPredefinedCids, | 129 kNumPredefinedCids, |
130 }; | 130 }; |
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1606 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
1607 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1607 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
1608 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1608 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
1609 kStacktraceCid == kByteArrayCid + 21); | 1609 kStacktraceCid == kByteArrayCid + 21); |
1610 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1610 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
1611 } | 1611 } |
1612 | 1612 |
1613 } // namespace dart | 1613 } // namespace dart |
1614 | 1614 |
1615 #endif // VM_RAW_OBJECT_H_ | 1615 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |