| 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 585 |
| 586 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); | 586 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); |
| 587 | 587 |
| 588 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 588 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 589 RawString* name_; | 589 RawString* name_; |
| 590 RawString* url_; | 590 RawString* url_; |
| 591 RawScript* script_; | 591 RawScript* script_; |
| 592 RawString* private_key_; | 592 RawString* private_key_; |
| 593 RawArray* dictionary_; // Top-level names in this library. | 593 RawArray* dictionary_; // Top-level names in this library. |
| 594 RawArray* anonymous_classes_; // Classes containing top-level elements. | 594 RawArray* anonymous_classes_; // Classes containing top-level elements. |
| 595 RawArray* import_map_; // Map of import variable names to strings. |
| 595 RawArray* imports_; // List of libraries imported without prefix. | 596 RawArray* imports_; // List of libraries imported without prefix. |
| 596 RawArray* imported_into_; // List of libraries where this library | 597 RawArray* imported_into_; // List of libraries where this library |
| 597 // is imported into without a prefix. | 598 // is imported into without a prefix. |
| 598 RawLibrary* next_registered_; // Linked list of registered libraries. | 599 RawLibrary* next_registered_; // Linked list of registered libraries. |
| 599 RawArray* loaded_scripts_; // Array of scripts loaded in this library. | 600 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
| 600 RawObject** to() { | 601 RawObject** to() { |
| 601 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); | 602 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); |
| 602 } | 603 } |
| 603 | 604 |
| 604 intptr_t num_imports_; // Number of entries in imports_. | 605 intptr_t num_imports_; // Number of entries in imports_. |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 intptr_t type_; // Uninitialized, simple or complex. | 1042 intptr_t type_; // Uninitialized, simple or complex. |
| 1042 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1043 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 1043 | 1044 |
| 1044 // Variable length data follows here. | 1045 // Variable length data follows here. |
| 1045 uint8_t data_[0]; | 1046 uint8_t data_[0]; |
| 1046 }; | 1047 }; |
| 1047 | 1048 |
| 1048 } // namespace dart | 1049 } // namespace dart |
| 1049 | 1050 |
| 1050 #endif // VM_RAW_OBJECT_H_ | 1051 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |