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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 RawObject** to() { | 770 RawObject** to() { |
771 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); | 771 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); |
772 } | 772 } |
773 | 773 |
774 intptr_t index_; // Library id number. | 774 intptr_t index_; // Library id number. |
775 intptr_t num_imports_; // Number of entries in imports_. | 775 intptr_t num_imports_; // Number of entries in imports_. |
776 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 776 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
777 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 777 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
778 Dart_NativeEntrySymbol native_entry_symbol_resolver_; | 778 Dart_NativeEntrySymbol native_entry_symbol_resolver_; |
779 bool corelib_imported_; | 779 bool corelib_imported_; |
780 bool is_dart_scheme_; | |
781 bool debuggable_; // True if debugger can stop in library. | 780 bool debuggable_; // True if debugger can stop in library. |
782 int8_t load_state_; // Of type LibraryState. | 781 int8_t load_state_; // Of type LibraryState. |
783 | 782 |
784 friend class Isolate; | 783 friend class Isolate; |
785 }; | 784 }; |
786 | 785 |
787 | 786 |
788 class RawNamespace : public RawObject { | 787 class RawNamespace : public RawObject { |
789 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); | 788 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); |
790 | 789 |
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1806 // Make sure this is updated when new TypedData types are added. | 1805 // Make sure this is updated when new TypedData types are added. |
1807 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1806 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
1808 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1807 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
1809 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1808 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
1810 return (kNullCid - kTypedDataInt8ArrayCid); | 1809 return (kNullCid - kTypedDataInt8ArrayCid); |
1811 } | 1810 } |
1812 | 1811 |
1813 } // namespace dart | 1812 } // namespace dart |
1814 | 1813 |
1815 #endif // VM_RAW_OBJECT_H_ | 1814 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |