| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 enum { | 176 enum { |
| 177 kSmiTag = 0, | 177 kSmiTag = 0, |
| 178 kHeapObjectTag = 1, | 178 kHeapObjectTag = 1, |
| 179 kSmiTagSize = 1, | 179 kSmiTagSize = 1, |
| 180 kSmiTagMask = 1, | 180 kSmiTagMask = 1, |
| 181 kSmiTagShift = 1, | 181 kSmiTagShift = 1, |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 enum { |
| 185 kInvalidObjectPointer = kHeapObjectTag, |
| 186 }; |
| 187 |
| 184 enum TypedDataElementType { | 188 enum TypedDataElementType { |
| 185 #define V(name) k##name##Element, | 189 #define V(name) k##name##Element, |
| 186 CLASS_LIST_TYPED_DATA(V) | 190 CLASS_LIST_TYPED_DATA(V) |
| 187 #undef V | 191 #undef V |
| 188 }; | 192 }; |
| 189 | 193 |
| 190 #define SNAPSHOT_WRITER_SUPPORT() \ | 194 #define SNAPSHOT_WRITER_SUPPORT() \ |
| 191 void WriteTo( \ | 195 void WriteTo( \ |
| 192 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ | 196 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ |
| 193 friend class SnapshotWriter; \ | 197 friend class SnapshotWriter; \ |
| (...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1863 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1860 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1864 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 1861 kTypedDataInt8ArrayViewCid + 15); | 1865 kTypedDataInt8ArrayViewCid + 15); |
| 1862 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1866 COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1863 return (kNullCid - kTypedDataInt8ArrayCid); | 1867 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1864 } | 1868 } |
| 1865 | 1869 |
| 1866 } // namespace dart | 1870 } // namespace dart |
| 1867 | 1871 |
| 1868 #endif // VM_RAW_OBJECT_H_ | 1872 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |