Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: runtime/vm/raw_object.h

Issue 2004303004: - Account for lost bit in 32-bit. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698