| 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/atomic.h" | 9 #include "vm/atomic.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 } | 549 } |
| 550 | 550 |
| 551 #if defined(DEBUG) | 551 #if defined(DEBUG) |
| 552 static void ValidateOverwrittenPointer(RawObject* raw); | 552 static void ValidateOverwrittenPointer(RawObject* raw); |
| 553 static void ValidateOverwrittenSmi(RawSmi* raw); | 553 static void ValidateOverwrittenSmi(RawSmi* raw); |
| 554 #endif // DEBUG | 554 #endif // DEBUG |
| 555 | 555 |
| 556 friend class Api; | 556 friend class Api; |
| 557 friend class ApiMessageReader; // GetClassId | 557 friend class ApiMessageReader; // GetClassId |
| 558 friend class Array; | 558 friend class Array; |
| 559 friend class Bigint; |
| 559 friend class ByteBuffer; | 560 friend class ByteBuffer; |
| 560 friend class Code; | 561 friend class Code; |
| 561 friend class Closure; | 562 friend class Closure; |
| 563 friend class Double; |
| 562 friend class FreeListElement; | 564 friend class FreeListElement; |
| 563 friend class Function; | 565 friend class Function; |
| 564 friend class GCMarker; | 566 friend class GCMarker; |
| 565 friend class ExternalTypedData; | 567 friend class ExternalTypedData; |
| 566 friend class ForwardList; | 568 friend class ForwardList; |
| 567 friend class GrowableObjectArray; // StorePointer | 569 friend class GrowableObjectArray; // StorePointer |
| 568 friend class Heap; | 570 friend class Heap; |
| 569 friend class HeapMapAsJSONVisitor; | 571 friend class HeapMapAsJSONVisitor; |
| 570 friend class ClassStatsVisitor; | 572 friend class ClassStatsVisitor; |
| 571 friend class MarkingVisitor; | 573 friend class MarkingVisitor; |
| 574 friend class Mint; |
| 572 friend class Object; | 575 friend class Object; |
| 573 friend class OneByteString; // StoreSmi | 576 friend class OneByteString; // StoreSmi |
| 574 friend class RawExternalTypedData; | 577 friend class RawExternalTypedData; |
| 575 friend class RawInstructions; | 578 friend class RawInstructions; |
| 576 friend class RawInstance; | 579 friend class RawInstance; |
| 577 friend class RawTypedData; | 580 friend class RawTypedData; |
| 578 friend class Scavenger; | 581 friend class Scavenger; |
| 579 friend class ScavengerVisitor; | 582 friend class ScavengerVisitor; |
| 580 friend class SizeExcludingClassVisitor; // GetClassId | 583 friend class SizeExcludingClassVisitor; // GetClassId |
| 581 friend class SnapshotReader; | 584 friend class SnapshotReader; |
| (...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2179 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2182 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2180 kTypedDataInt8ArrayViewCid + 15); | 2183 kTypedDataInt8ArrayViewCid + 15); |
| 2181 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2184 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2182 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2185 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2183 return (kNullCid - kTypedDataInt8ArrayCid); | 2186 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2184 } | 2187 } |
| 2185 | 2188 |
| 2186 } // namespace dart | 2189 } // namespace dart |
| 2187 | 2190 |
| 2188 #endif // VM_RAW_OBJECT_H_ | 2191 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |