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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 friend class InstructionsWriter; | 630 friend class InstructionsWriter; |
631 friend class SnapshotReader; | 631 friend class SnapshotReader; |
632 friend class SnapshotWriter; | 632 friend class SnapshotWriter; |
633 friend class String; | 633 friend class String; |
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 | 641 |
641 DISALLOW_ALLOCATION(); | 642 DISALLOW_ALLOCATION(); |
642 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 643 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); |
643 }; | 644 }; |
644 | 645 |
645 | 646 |
646 class RawClass : public RawObject { | 647 class RawClass : public RawObject { |
647 public: | 648 public: |
648 enum ClassFinalizedState { | 649 enum ClassFinalizedState { |
649 kAllocated = 0, // Initial state. | 650 kAllocated = 0, // Initial state. |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2335 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2336 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2336 kTypedDataInt8ArrayViewCid + 15); | 2337 kTypedDataInt8ArrayViewCid + 15); |
2337 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2338 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2338 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2339 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2339 return (kNullCid - kTypedDataInt8ArrayCid); | 2340 return (kNullCid - kTypedDataInt8ArrayCid); |
2340 } | 2341 } |
2341 | 2342 |
2342 } // namespace dart | 2343 } // namespace dart |
2343 | 2344 |
2344 #endif // VM_RAW_OBJECT_H_ | 2345 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |