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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 friend class InstructionsWriter; | 628 friend class InstructionsWriter; |
629 friend class SnapshotReader; | 629 friend class SnapshotReader; |
630 friend class SnapshotWriter; | 630 friend class SnapshotWriter; |
631 friend class String; | 631 friend class String; |
632 friend class TypedData; | 632 friend class TypedData; |
633 friend class TypedDataView; | 633 friend class TypedDataView; |
634 friend class WeakProperty; // StorePointer | 634 friend class WeakProperty; // StorePointer |
635 friend class Instance; // StorePointer | 635 friend class Instance; // StorePointer |
636 friend class StackFrame; // GetCodeObject assertion. | 636 friend class StackFrame; // GetCodeObject assertion. |
637 friend class CodeLookupTableBuilder; // profiler | 637 friend class CodeLookupTableBuilder; // profiler |
| 638 friend class NativeEntry; // GetClassId |
638 | 639 |
639 DISALLOW_ALLOCATION(); | 640 DISALLOW_ALLOCATION(); |
640 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 641 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); |
641 }; | 642 }; |
642 | 643 |
643 | 644 |
644 class RawClass : public RawObject { | 645 class RawClass : public RawObject { |
645 public: | 646 public: |
646 enum ClassFinalizedState { | 647 enum ClassFinalizedState { |
647 kAllocated = 0, // Initial state. | 648 kAllocated = 0, // Initial state. |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2333 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2334 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2334 kTypedDataInt8ArrayViewCid + 15); | 2335 kTypedDataInt8ArrayViewCid + 15); |
2335 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2336 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2336 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2337 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2337 return (kNullCid - kTypedDataInt8ArrayCid); | 2338 return (kNullCid - kTypedDataInt8ArrayCid); |
2338 } | 2339 } |
2339 | 2340 |
2340 } // namespace dart | 2341 } // namespace dart |
2341 | 2342 |
2342 #endif // VM_RAW_OBJECT_H_ | 2343 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |