| 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_; |
| 780 bool debuggable_; // True if debugger can stop in library. | 781 bool debuggable_; // True if debugger can stop in library. |
| 781 int8_t load_state_; // Of type LibraryState. | 782 int8_t load_state_; // Of type LibraryState. |
| 782 | 783 |
| 783 friend class Isolate; | 784 friend class Isolate; |
| 784 }; | 785 }; |
| 785 | 786 |
| 786 | 787 |
| 787 class RawNamespace : public RawObject { | 788 class RawNamespace : public RawObject { |
| 788 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); | 789 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); |
| 789 | 790 |
| (...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 // Make sure this is updated when new TypedData types are added. | 1806 // Make sure this is updated when new TypedData types are added. |
| 1806 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1807 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1807 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1808 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
| 1808 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1809 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1809 return (kNullCid - kTypedDataInt8ArrayCid); | 1810 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1810 } | 1811 } |
| 1811 | 1812 |
| 1812 } // namespace dart | 1813 } // namespace dart |
| 1813 | 1814 |
| 1814 #endif // VM_RAW_OBJECT_H_ | 1815 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |