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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ObjectLocator; |
| 644 friend class InstanceMorpher; // GetClassId |
643 | 645 |
644 DISALLOW_ALLOCATION(); | 646 DISALLOW_ALLOCATION(); |
645 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 647 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); |
646 }; | 648 }; |
647 | 649 |
648 | 650 |
649 class RawClass : public RawObject { | 651 class RawClass : public RawObject { |
650 public: | 652 public: |
651 enum ClassFinalizedState { | 653 enum ClassFinalizedState { |
652 kAllocated = 0, // Initial state. | 654 kAllocated = 0, // Initial state. |
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2421 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2420 kTypedDataInt8ArrayViewCid + 15); | 2422 kTypedDataInt8ArrayViewCid + 15); |
2421 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2423 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2422 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2424 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2423 return (kNullCid - kTypedDataInt8ArrayCid); | 2425 return (kNullCid - kTypedDataInt8ArrayCid); |
2424 } | 2426 } |
2425 | 2427 |
2426 } // namespace dart | 2428 } // namespace dart |
2427 | 2429 |
2428 #endif // VM_RAW_OBJECT_H_ | 2430 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |