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

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

Issue 2964503005: Debug garbage collector does not correctly remove cross-gen garbage (Closed)
Patch Set: Created 3 years, 5 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
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 RUNTIME_VM_RAW_OBJECT_H_ 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_
6 #define RUNTIME_VM_RAW_OBJECT_H_ 6 #define RUNTIME_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/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // be dereferenced (e.g. RawSmi). 258 // be dereferenced (e.g. RawSmi).
259 class RawObject { 259 class RawObject {
260 public: 260 public:
261 // The tags field which is a part of the object header uses the following 261 // The tags field which is a part of the object header uses the following
262 // bit fields for storing tags. 262 // bit fields for storing tags.
263 enum TagBits { 263 enum TagBits {
264 kMarkBit = 0, 264 kMarkBit = 0,
265 kCanonicalBit = 1, 265 kCanonicalBit = 1,
266 kVMHeapObjectBit = 2, 266 kVMHeapObjectBit = 2,
267 kRememberedBit = 3, 267 kRememberedBit = 3,
268 kReservedTagPos = 4, // kReservedBit{100K,1M,10M} 268 kReservedTagPos = 4, // kReservedBit{10K,100K,1M,10M}
269 kReservedTagSize = 4, 269 kReservedTagSize = 4,
270 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 8 270 kSizeTagPos = kReservedTagPos + kReservedTagSize, // = 8
271 kSizeTagSize = 8, 271 kSizeTagSize = 8,
272 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 16 272 kClassIdTagPos = kSizeTagPos + kSizeTagSize, // = 16
273 kClassIdTagSize = 16, 273 kClassIdTagSize = 16,
274 }; 274 };
275 275
276 COMPILE_ASSERT(kClassIdTagSize == (sizeof(classid_t) * kBitsPerByte)); 276 COMPILE_ASSERT(kClassIdTagSize == (sizeof(classid_t) * kBitsPerByte));
277 277
278 // Encodes the object size in the tag in units of object alignment. 278 // Encodes the object size in the tag in units of object alignment.
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2496 kTypedDataInt8ArrayViewCid + 15); 2496 kTypedDataInt8ArrayViewCid + 15);
2497 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2497 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2498 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2498 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2499 return (kNullCid - kTypedDataInt8ArrayCid); 2499 return (kNullCid - kTypedDataInt8ArrayCid);
2500 } 2500 }
2501 2501
2502 2502
2503 } // namespace dart 2503 } // namespace dart
2504 2504
2505 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2505 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/heap.cc ('K') | « runtime/vm/object_test.cc ('k') | runtime/vm/scavenger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698