| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 class RawLibrary : public RawObject { | 441 class RawLibrary : public RawObject { |
| 442 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); | 442 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); |
| 443 | 443 |
| 444 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 444 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 445 RawString* name_; | 445 RawString* name_; |
| 446 RawString* url_; | 446 RawString* url_; |
| 447 RawScript* script_; | 447 RawScript* script_; |
| 448 RawString* private_key_; | 448 RawString* private_key_; |
| 449 RawArray* dictionary_; // Top-level names in this library. | 449 RawArray* dictionary_; // Top-level names in this library. |
| 450 RawArray* anonymous_classes_; // Classes containing top-level elements. | 450 RawArray* anonymous_classes_; // Classes containing top-level elements. |
| 451 RawArray* imports_; // Imported libraries. | 451 RawArray* imports_; // List of libraries imported without prefix. |
| 452 RawArray* imported_into_; // List of libraries where this library |
| 453 // is imported into without a prefix. |
| 452 RawLibrary* next_registered_; // Linked list of registered libraries. | 454 RawLibrary* next_registered_; // Linked list of registered libraries. |
| 453 RawObject** to() { | 455 RawObject** to() { |
| 454 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); | 456 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); |
| 455 } | 457 } |
| 456 | 458 |
| 457 intptr_t num_imports_; // Number of entries in imports_. | 459 intptr_t num_imports_; // Number of entries in imports_. |
| 460 intptr_t num_imported_into_; // Number of entries in imported_into_. |
| 458 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 461 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
| 459 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 462 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
| 460 bool corelib_imported_; | 463 bool corelib_imported_; |
| 461 bool loaded_; | 464 bool loaded_; |
| 462 }; | 465 }; |
| 463 | 466 |
| 464 | 467 |
| 465 class RawLibraryPrefix : public RawObject { | 468 class RawLibraryPrefix : public RawObject { |
| 466 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 469 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
| 467 | 470 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 intptr_t type_; // Uninitialized, simple or complex. | 771 intptr_t type_; // Uninitialized, simple or complex. |
| 769 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 772 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 770 | 773 |
| 771 // Variable length data follows here. | 774 // Variable length data follows here. |
| 772 uint8_t data_[0]; | 775 uint8_t data_[0]; |
| 773 }; | 776 }; |
| 774 | 777 |
| 775 } // namespace dart | 778 } // namespace dart |
| 776 | 779 |
| 777 #endif // VM_RAW_OBJECT_H_ | 780 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |