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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 RawString* name_; | 662 RawString* name_; |
663 RawString* url_; | 663 RawString* url_; |
664 RawScript* script_; | 664 RawScript* script_; |
665 RawString* private_key_; | 665 RawString* private_key_; |
666 RawArray* dictionary_; // Top-level names in this library. | 666 RawArray* dictionary_; // Top-level names in this library. |
667 RawArray* anonymous_classes_; // Classes containing top-level elements. | 667 RawArray* anonymous_classes_; // Classes containing top-level elements. |
668 RawArray* import_map_; // Map of import variable names to strings. | 668 RawArray* import_map_; // Map of import variable names to strings. |
669 RawArray* imports_; // List of libraries imported without prefix. | 669 RawArray* imports_; // List of libraries imported without prefix. |
670 RawArray* imported_into_; // List of libraries where this library | 670 RawArray* imported_into_; // List of libraries where this library |
671 // is imported into without a prefix. | 671 // is imported into without a prefix. |
672 RawLibrary* next_registered_; // Linked list of registered libraries. | |
673 RawArray* loaded_scripts_; // Array of scripts loaded in this library. | 672 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
674 RawObject** to() { | 673 RawObject** to() { |
675 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); | 674 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); |
676 } | 675 } |
677 | 676 |
678 intptr_t num_imports_; // Number of entries in imports_. | 677 intptr_t num_imports_; // Number of entries in imports_. |
679 intptr_t num_imported_into_; // Number of entries in imported_into_. | 678 intptr_t num_imported_into_; // Number of entries in imported_into_. |
680 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 679 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
681 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 680 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
682 bool corelib_imported_; | 681 bool corelib_imported_; |
683 int8_t load_state_; // Of type LibraryState. | 682 int8_t load_state_; // Of type LibraryState. |
684 | 683 |
685 friend class Isolate; | 684 friend class Isolate; |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 kExternalUint64Array == kByteArray + 18 && | 1495 kExternalUint64Array == kByteArray + 18 && |
1497 kExternalFloat32Array == kByteArray + 19 && | 1496 kExternalFloat32Array == kByteArray + 19 && |
1498 kExternalFloat64Array == kByteArray + 20 && | 1497 kExternalFloat64Array == kByteArray + 20 && |
1499 kClosure == kByteArray + 21); | 1498 kClosure == kByteArray + 21); |
1500 return (index >= kByteArray && index <= kClosure); | 1499 return (index >= kByteArray && index <= kClosure); |
1501 } | 1500 } |
1502 | 1501 |
1503 } // namespace dart | 1502 } // namespace dart |
1504 | 1503 |
1505 #endif // VM_RAW_OBJECT_H_ | 1504 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |