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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 RawObject** to() { | 598 RawObject** to() { |
599 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); | 599 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); |
600 } | 600 } |
601 | 601 |
602 intptr_t num_imports_; // Number of entries in imports_. | 602 intptr_t num_imports_; // Number of entries in imports_. |
603 intptr_t num_imported_into_; // Number of entries in imported_into_. | 603 intptr_t num_imported_into_; // Number of entries in imported_into_. |
604 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 604 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
605 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 605 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
606 bool corelib_imported_; | 606 bool corelib_imported_; |
607 int8_t load_state_; // Of type LibraryState. | 607 int8_t load_state_; // Of type LibraryState. |
| 608 |
| 609 friend class Isolate; |
608 }; | 610 }; |
609 | 611 |
610 | 612 |
611 class RawLibraryPrefix : public RawObject { | 613 class RawLibraryPrefix : public RawObject { |
612 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 614 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
613 | 615 |
614 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 616 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
615 RawString* name_; // library prefix name. | 617 RawString* name_; // library prefix name. |
616 RawLibrary* library_; // library imported with a prefix. | 618 RawLibrary* library_; // library imported with a prefix. |
617 RawObject** to() { | 619 RawObject** to() { |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 intptr_t type_; // Uninitialized, simple or complex. | 1077 intptr_t type_; // Uninitialized, simple or complex. |
1076 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 1078 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
1077 | 1079 |
1078 // Variable length data follows here. | 1080 // Variable length data follows here. |
1079 uint8_t data_[0]; | 1081 uint8_t data_[0]; |
1080 }; | 1082 }; |
1081 | 1083 |
1082 } // namespace dart | 1084 } // namespace dart |
1083 | 1085 |
1084 #endif // VM_RAW_OBJECT_H_ | 1086 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |