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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
728 friend class SnapshotReader; | 728 friend class SnapshotReader; |
729 friend class InstanceSerializationCluster; | 729 friend class InstanceSerializationCluster; |
730 friend class CidRewriteVisitor; | 730 friend class CidRewriteVisitor; |
731 }; | 731 }; |
732 | 732 |
733 | 733 |
734 class RawUnresolvedClass : public RawObject { | 734 class RawUnresolvedClass : public RawObject { |
735 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); | 735 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); |
736 | 736 |
737 RawObject** from() { | 737 RawObject** from() { |
738 return reinterpret_cast<RawObject**>(&ptr()->library_prefix_); | 738 return reinterpret_cast<RawObject**>(&ptr()->library_or_library_prefix_); |
739 } | 739 } |
740 RawLibraryPrefix* library_prefix_; // Library prefix qualifier for the ident. | 740 RawObject* library_or_library_prefix_; // Library or library prefix qualifier |
hausner
2016/11/09 18:21:36
I don't see where the CL makes use of this change.
Vyacheslav Egorov (Google)
2016/11/09 18:44:52
Sorry, I missed this question.
See kernel_to_il.
hausner
2016/11/09 19:07:01
Ah, I see now.
| |
741 // for the ident. | |
741 RawString* ident_; // Name of the unresolved identifier. | 742 RawString* ident_; // Name of the unresolved identifier. |
742 RawObject** to() { | 743 RawObject** to() { |
743 return reinterpret_cast<RawObject**>(&ptr()->ident_); | 744 return reinterpret_cast<RawObject**>(&ptr()->ident_); |
744 } | 745 } |
745 TokenPosition token_pos_; | 746 TokenPosition token_pos_; |
746 }; | 747 }; |
747 | 748 |
748 | 749 |
749 class RawTypeArguments : public RawObject { | 750 class RawTypeArguments : public RawObject { |
750 private: | 751 private: |
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2487 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2488 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2488 kTypedDataInt8ArrayViewCid + 15); | 2489 kTypedDataInt8ArrayViewCid + 15); |
2489 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2490 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2490 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2491 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2491 return (kNullCid - kTypedDataInt8ArrayCid); | 2492 return (kNullCid - kTypedDataInt8ArrayCid); |
2492 } | 2493 } |
2493 | 2494 |
2494 } // namespace dart | 2495 } // namespace dart |
2495 | 2496 |
2496 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2497 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |