| 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/atomic.h" | 9 #include "vm/atomic.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 enum { | 180 enum { |
| 181 kSmiTag = 0, | 181 kSmiTag = 0, |
| 182 kHeapObjectTag = 1, | 182 kHeapObjectTag = 1, |
| 183 kSmiTagSize = 1, | 183 kSmiTagSize = 1, |
| 184 kSmiTagMask = 1, | 184 kSmiTagMask = 1, |
| 185 kSmiTagShift = 1, | 185 kSmiTagShift = 1, |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 enum { | |
| 189 kInvalidObjectPointer = kHeapObjectTag, | |
| 190 }; | |
| 191 | |
| 192 enum TypedDataElementType { | 188 enum TypedDataElementType { |
| 193 #define V(name) k##name##Element, | 189 #define V(name) k##name##Element, |
| 194 CLASS_LIST_TYPED_DATA(V) | 190 CLASS_LIST_TYPED_DATA(V) |
| 195 #undef V | 191 #undef V |
| 196 }; | 192 }; |
| 197 | 193 |
| 198 #define SNAPSHOT_WRITER_SUPPORT() \ | 194 #define SNAPSHOT_WRITER_SUPPORT() \ |
| 199 void WriteTo( \ | 195 void WriteTo( \ |
| 200 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ | 196 SnapshotWriter* writer, intptr_t object_id, Snapshot::Kind kind); \ |
| 201 friend class SnapshotWriter; \ | 197 friend class SnapshotWriter; \ |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2161 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2157 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2162 kTypedDataInt8ArrayViewCid + 15); | 2158 kTypedDataInt8ArrayViewCid + 15); |
| 2163 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2159 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2164 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2160 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2165 return (kNullCid - kTypedDataInt8ArrayCid); | 2161 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2166 } | 2162 } |
| 2167 | 2163 |
| 2168 } // namespace dart | 2164 } // namespace dart |
| 2169 | 2165 |
| 2170 #endif // VM_RAW_OBJECT_H_ | 2166 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |