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

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

Issue 2160953002: Add a verification step which iterates over the heap and verifies that all canonical objects are co… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments. Created 4 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
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 friend class Type; // GetClassId 633 friend class Type; // GetClassId
634 friend class TypedData; 634 friend class TypedData;
635 friend class TypedDataView; 635 friend class TypedDataView;
636 friend class WeakProperty; // StorePointer 636 friend class WeakProperty; // StorePointer
637 friend class Instance; // StorePointer 637 friend class Instance; // StorePointer
638 friend class StackFrame; // GetCodeObject assertion. 638 friend class StackFrame; // GetCodeObject assertion.
639 friend class CodeLookupTableBuilder; // profiler 639 friend class CodeLookupTableBuilder; // profiler
640 friend class NativeEntry; // GetClassId 640 friend class NativeEntry; // GetClassId
641 friend class Simulator; 641 friend class Simulator;
642 friend class SimulatorHelpers; 642 friend class SimulatorHelpers;
643 friend class VerifyCanonicalVisitor;
643 644
644 DISALLOW_ALLOCATION(); 645 DISALLOW_ALLOCATION();
645 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); 646 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject);
646 }; 647 };
647 648
648 649
649 class RawClass : public RawObject { 650 class RawClass : public RawObject {
650 public: 651 public:
651 enum ClassFinalizedState { 652 enum ClassFinalizedState {
652 kAllocated = 0, // Initial state. 653 kAllocated = 0, // Initial state.
(...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2427 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2427 kTypedDataInt8ArrayViewCid + 15); 2428 kTypedDataInt8ArrayViewCid + 15);
2428 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2429 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2429 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2430 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2430 return (kNullCid - kTypedDataInt8ArrayCid); 2431 return (kNullCid - kTypedDataInt8ArrayCid);
2431 } 2432 }
2432 2433
2433 } // namespace dart 2434 } // namespace dart
2434 2435
2435 #endif // VM_RAW_OBJECT_H_ 2436 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698