| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 enum { | 171 enum { |
| 172 kSmiTag = 0, | 172 kSmiTag = 0, |
| 173 kHeapObjectTag = 1, | 173 kHeapObjectTag = 1, |
| 174 kSmiTagSize = 1, | 174 kSmiTagSize = 1, |
| 175 kSmiTagMask = 1, | 175 kSmiTagMask = 1, |
| 176 kSmiTagShift = 1, | 176 kSmiTagShift = 1, |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 enum TypeDataElementType { | 179 enum TypedDataElementType { |
| 180 #define V(name) k##name##Element, | 180 #define V(name) k##name##Element, |
| 181 CLASS_LIST_TYPED_DATA(V) | 181 CLASS_LIST_TYPED_DATA(V) |
| 182 #undef V | 182 #undef V |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 #define SNAPSHOT_WRITER_SUPPORT() \ | 185 #define SNAPSHOT_WRITER_SUPPORT() \ |
| 186 void WriteTo( \ | 186 void WriteTo( \ |
| 187 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ | 187 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ |
| 188 friend class SnapshotWriter; \ | 188 friend class SnapshotWriter; \ |
| 189 | 189 |
| (...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1716 // Make sure this is updated when new TypedData types are added. | 1716 // Make sure this is updated when new TypedData types are added. |
| 1717 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1717 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1718 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1718 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1719 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1719 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1720 return (kNullCid - kTypedDataInt8ArrayCid); | 1720 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1721 } | 1721 } |
| 1722 | 1722 |
| 1723 } // namespace dart | 1723 } // namespace dart |
| 1724 | 1724 |
| 1725 #endif // VM_RAW_OBJECT_H_ | 1725 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |