| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 public: | 255 public: |
| 256 // The tags field which is a part of the object header uses the following | 256 // The tags field which is a part of the object header uses the following |
| 257 // bit fields for storing tags. | 257 // bit fields for storing tags. |
| 258 enum TagBits { | 258 enum TagBits { |
| 259 kMarkBit = 0, | 259 kMarkBit = 0, |
| 260 kCanonicalBit = 1, | 260 kCanonicalBit = 1, |
| 261 kVMHeapObjectBit = 2, | 261 kVMHeapObjectBit = 2, |
| 262 kRememberedBit = 3, | 262 kRememberedBit = 3, |
| 263 kReservedTagPos = 4, // kReservedBit{100K,1M,10M} | 263 kReservedTagPos = 4, // kReservedBit{100K,1M,10M} |
| 264 #if defined(ARCH_IS_32_BIT) | 264 #if defined(ARCH_IS_32_BIT) |
| 265 kReservedTagSize = 3, | 265 kReservedTagSize = 4, |
| 266 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 8 | 266 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 8 |
| 267 kSizeTagSize = 8, | 267 kSizeTagSize = 8, |
| 268 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 16 | 268 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 16 |
| 269 kClassIdTagSize = 16, | 269 kClassIdTagSize = 16, |
| 270 #elif defined(ARCH_IS_64_BIT) | 270 #elif defined(ARCH_IS_64_BIT) |
| 271 kReservedTagSize = 12, | 271 kReservedTagSize = 12, |
| 272 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 16 | 272 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 16 |
| 273 kSizeTagSize = 16, | 273 kSizeTagSize = 16, |
| 274 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 32 | 274 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 32 |
| 275 kClassIdTagSize = 32, | 275 kClassIdTagSize = 32, |
| (...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2421 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2421 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2422 kTypedDataInt8ArrayViewCid + 15); | 2422 kTypedDataInt8ArrayViewCid + 15); |
| 2423 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2423 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2424 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2424 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2425 return (kNullCid - kTypedDataInt8ArrayCid); | 2425 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2426 } | 2426 } |
| 2427 | 2427 |
| 2428 } // namespace dart | 2428 } // namespace dart |
| 2429 | 2429 |
| 2430 #endif // VM_RAW_OBJECT_H_ | 2430 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |