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 RUNTIME_VM_RAW_OBJECT_H_ | 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_ |
6 #define RUNTIME_VM_RAW_OBJECT_H_ | 6 #define RUNTIME_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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 friend class SnapshotReader; | 699 friend class SnapshotReader; |
700 friend class InstanceSerializationCluster; | 700 friend class InstanceSerializationCluster; |
701 friend class CidRewriteVisitor; | 701 friend class CidRewriteVisitor; |
702 }; | 702 }; |
703 | 703 |
704 | 704 |
705 class RawUnresolvedClass : public RawObject { | 705 class RawUnresolvedClass : public RawObject { |
706 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); | 706 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); |
707 | 707 |
708 RawObject** from() { | 708 RawObject** from() { |
709 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); | 709 return reinterpret_cast<RawObject**>(&ptr()->library_or_library_prefix_); |
710 } | 710 } |
711 RawLibraryPrefix* library_prefix_; // Library prefix qualifier for the ident. | 711 RawObject* library_or_library_prefix_; // Library or library prefix qualifier |
712 RawString* ident_; // Name of the unresolved identifier. | 712 // for the ident. |
| 713 RawString* ident_; // Name of the unresolved identifier. |
713 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->ident_); } | 714 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->ident_); } |
714 TokenPosition token_pos_; | 715 TokenPosition token_pos_; |
715 }; | 716 }; |
716 | 717 |
717 | 718 |
718 class RawTypeArguments : public RawObject { | 719 class RawTypeArguments : public RawObject { |
719 private: | 720 private: |
720 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); | 721 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); |
721 | 722 |
722 RawObject** from() { | 723 RawObject** from() { |
(...skipping 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2375 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2375 kTypedDataInt8ArrayViewCid + 15); | 2376 kTypedDataInt8ArrayViewCid + 15); |
2376 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2377 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2377 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2378 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2378 return (kNullCid - kTypedDataInt8ArrayCid); | 2379 return (kNullCid - kTypedDataInt8ArrayCid); |
2379 } | 2380 } |
2380 | 2381 |
2381 } // namespace dart | 2382 } // namespace dart |
2382 | 2383 |
2383 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2384 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |