| 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/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 RawString* name_; | 584 RawString* name_; |
| 585 RawString* url_; | 585 RawString* url_; |
| 586 RawScript* script_; | 586 RawScript* script_; |
| 587 RawString* private_key_; | 587 RawString* private_key_; |
| 588 RawArray* dictionary_; // Top-level names in this library. | 588 RawArray* dictionary_; // Top-level names in this library. |
| 589 RawArray* anonymous_classes_; // Classes containing top-level elements. | 589 RawArray* anonymous_classes_; // Classes containing top-level elements. |
| 590 RawArray* imports_; // List of libraries imported without prefix. | 590 RawArray* imports_; // List of libraries imported without prefix. |
| 591 RawArray* imported_into_; // List of libraries where this library | 591 RawArray* imported_into_; // List of libraries where this library |
| 592 // is imported into without a prefix. | 592 // is imported into without a prefix. |
| 593 RawLibrary* next_registered_; // Linked list of registered libraries. | 593 RawLibrary* next_registered_; // Linked list of registered libraries. |
| 594 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
| 594 RawObject** to() { | 595 RawObject** to() { |
| 595 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); | 596 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); |
| 596 } | 597 } |
| 597 | 598 |
| 598 intptr_t num_imports_; // Number of entries in imports_. | 599 intptr_t num_imports_; // Number of entries in imports_. |
| 599 intptr_t num_imported_into_; // Number of entries in imported_into_. | 600 intptr_t num_imported_into_; // Number of entries in imported_into_. |
| 600 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 601 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
| 601 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 602 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
| 602 bool corelib_imported_; | 603 bool corelib_imported_; |
| 603 int8_t load_state_; // Of type LibraryState. | 604 int8_t load_state_; // Of type LibraryState. |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 intptr_t type_; // Uninitialized, simple or complex. | 1018 intptr_t type_; // Uninitialized, simple or complex. |
| 1018 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1019 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1019 | 1020 |
| 1020 // Variable length data follows here. | 1021 // Variable length data follows here. |
| 1021 uint8_t data_[0]; | 1022 uint8_t data_[0]; |
| 1022 }; | 1023 }; |
| 1023 | 1024 |
| 1024 } // namespace dart | 1025 } // namespace dart |
| 1025 | 1026 |
| 1026 #endif // VM_RAW_OBJECT_H_ | 1027 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |