| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 uword tags = ptr()->tags_; | 435 uword tags = ptr()->tags_; |
| 436 return ClassIdTag::decode(tags); | 436 return ClassIdTag::decode(tags); |
| 437 } | 437 } |
| 438 | 438 |
| 439 friend class Api; | 439 friend class Api; |
| 440 friend class Array; | 440 friend class Array; |
| 441 friend class FreeListElement; | 441 friend class FreeListElement; |
| 442 friend class GCMarker; | 442 friend class GCMarker; |
| 443 friend class ExternalTypedData; | 443 friend class ExternalTypedData; |
| 444 friend class Heap; | 444 friend class Heap; |
| 445 friend class HeapProfiler; | |
| 446 friend class HeapProfilerRootVisitor; | |
| 447 friend class MarkingVisitor; | 445 friend class MarkingVisitor; |
| 448 friend class Object; | 446 friend class Object; |
| 449 friend class ObjectHistogram; | 447 friend class ObjectHistogram; |
| 450 friend class RawExternalTypedData; | 448 friend class RawExternalTypedData; |
| 451 friend class RawInstructions; | 449 friend class RawInstructions; |
| 452 friend class RawInstance; | 450 friend class RawInstance; |
| 453 friend class RawTypedData; | 451 friend class RawTypedData; |
| 454 friend class Scavenger; | 452 friend class Scavenger; |
| 455 friend class SnapshotReader; | 453 friend class SnapshotReader; |
| 456 friend class SnapshotWriter; | 454 friend class SnapshotWriter; |
| (...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 // Make sure this is updated when new TypedData types are added. | 1740 // Make sure this is updated when new TypedData types are added. |
| 1743 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); | 1741 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); |
| 1744 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); | 1742 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); |
| 1745 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); | 1743 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); |
| 1746 return (kNullCid - kTypedDataInt8ArrayCid); | 1744 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1747 } | 1745 } |
| 1748 | 1746 |
| 1749 } // namespace dart | 1747 } // namespace dart |
| 1750 | 1748 |
| 1751 #endif // VM_RAW_OBJECT_H_ | 1749 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |