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/globals.h" | 9 #include "vm/globals.h" |
10 #include "vm/token.h" | 10 #include "vm/token.h" |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 friend class HeapMapAsJSONVisitor; | 449 friend class HeapMapAsJSONVisitor; |
450 friend class ClassStatsVisitor; | 450 friend class ClassStatsVisitor; |
451 friend class MarkingVisitor; | 451 friend class MarkingVisitor; |
452 friend class Object; | 452 friend class Object; |
453 friend class RawExternalTypedData; | 453 friend class RawExternalTypedData; |
454 friend class RawInstructions; | 454 friend class RawInstructions; |
455 friend class RawInstance; | 455 friend class RawInstance; |
456 friend class RawTypedData; | 456 friend class RawTypedData; |
457 friend class Scavenger; | 457 friend class Scavenger; |
458 friend class ScavengerVisitor; | 458 friend class ScavengerVisitor; |
| 459 friend class SizeExcludingClassVisitor; // GetClassId |
459 friend class SnapshotReader; | 460 friend class SnapshotReader; |
460 friend class SnapshotWriter; | 461 friend class SnapshotWriter; |
461 friend class String; | 462 friend class String; |
462 friend class TypedData; | 463 friend class TypedData; |
463 friend class TypedDataView; | 464 friend class TypedDataView; |
464 | 465 |
465 DISALLOW_ALLOCATION(); | 466 DISALLOW_ALLOCATION(); |
466 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 467 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); |
467 }; | 468 }; |
468 | 469 |
(...skipping 1364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1833 // Make sure this is updated when new TypedData types are added. | 1834 // Make sure this is updated when new TypedData types are added. |
1834 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1835 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
1835 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1836 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
1836 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1837 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
1837 return (kNullCid - kTypedDataInt8ArrayCid); | 1838 return (kNullCid - kTypedDataInt8ArrayCid); |
1838 } | 1839 } |
1839 | 1840 |
1840 } // namespace dart | 1841 } // namespace dart |
1841 | 1842 |
1842 #endif // VM_RAW_OBJECT_H_ | 1843 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |