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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 friend class Api; | 436 friend class Api; |
437 friend class Array; | 437 friend class Array; |
438 friend class FreeListElement; | 438 friend class FreeListElement; |
439 friend class GCMarker; | 439 friend class GCMarker; |
440 friend class ExternalTypedData; | 440 friend class ExternalTypedData; |
441 friend class Heap; | 441 friend class Heap; |
442 friend class HeapProfiler; | 442 friend class HeapProfiler; |
443 friend class HeapProfilerRootVisitor; | 443 friend class HeapProfilerRootVisitor; |
444 friend class MarkingVisitor; | 444 friend class MarkingVisitor; |
445 friend class Object; | 445 friend class Object; |
| 446 friend class ObjectHistogram; |
446 friend class RawExternalTypedData; | 447 friend class RawExternalTypedData; |
447 friend class RawInstructions; | 448 friend class RawInstructions; |
448 friend class RawInstance; | 449 friend class RawInstance; |
449 friend class RawTypedData; | 450 friend class RawTypedData; |
450 friend class Scavenger; | 451 friend class Scavenger; |
451 friend class SnapshotReader; | 452 friend class SnapshotReader; |
452 friend class SnapshotWriter; | 453 friend class SnapshotWriter; |
453 friend class String; | 454 friend class String; |
454 friend class TypedData; | 455 friend class TypedData; |
455 friend class TypedDataView; | 456 friend class TypedDataView; |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 // Make sure this is updated when new TypedData types are added. | 1688 // Make sure this is updated when new TypedData types are added. |
1688 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1689 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
1689 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1690 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
1690 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1691 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
1691 return (kNullCid - kTypedDataInt8ArrayCid); | 1692 return (kNullCid - kTypedDataInt8ArrayCid); |
1692 } | 1693 } |
1693 | 1694 |
1694 } // namespace dart | 1695 } // namespace dart |
1695 | 1696 |
1696 #endif // VM_RAW_OBJECT_H_ | 1697 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |