| 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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 }; | 751 }; |
| 752 | 752 |
| 753 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); | 753 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); |
| 754 | 754 |
| 755 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 755 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 756 RawString* name_; | 756 RawString* name_; |
| 757 RawString* url_; | 757 RawString* url_; |
| 758 RawScript* script_; | 758 RawScript* script_; |
| 759 RawString* private_key_; | 759 RawString* private_key_; |
| 760 RawArray* dictionary_; // Top-level names in this library. | 760 RawArray* dictionary_; // Top-level names in this library. |
| 761 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. |
| 761 RawArray* anonymous_classes_; // Classes containing top-level elements. | 762 RawArray* anonymous_classes_; // Classes containing top-level elements. |
| 762 RawArray* imports_; // List of Namespaces imported without prefix. | 763 RawArray* imports_; // List of Namespaces imported without prefix. |
| 763 RawArray* exports_; // List of re-exported Namespaces. | 764 RawArray* exports_; // List of re-exported Namespaces. |
| 764 RawArray* loaded_scripts_; // Array of scripts loaded in this library. | 765 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
| 765 RawObject** to() { | 766 RawObject** to() { |
| 766 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); | 767 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); |
| 767 } | 768 } |
| 768 | 769 |
| 769 intptr_t index_; // Library id number. | 770 intptr_t index_; // Library id number. |
| 770 intptr_t num_imports_; // Number of entries in imports_. | 771 intptr_t num_imports_; // Number of entries in imports_. |
| (...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1684 // Make sure this is updated when new TypedData types are added. | 1685 // Make sure this is updated when new TypedData types are added. |
| 1685 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); | 1686 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); |
| 1686 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); | 1687 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); |
| 1687 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); | 1688 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); |
| 1688 return (kNullCid - kTypedDataInt8ArrayCid); | 1689 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1689 } | 1690 } |
| 1690 | 1691 |
| 1691 } // namespace dart | 1692 } // namespace dart |
| 1692 | 1693 |
| 1693 #endif // VM_RAW_OBJECT_H_ | 1694 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |