| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 RawObject** to() { | 672 RawObject** to() { |
| 673 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); | 673 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); |
| 674 } | 674 } |
| 675 | 675 |
| 676 intptr_t index_; // Library id number. | 676 intptr_t index_; // Library id number. |
| 677 intptr_t num_imports_; // Number of entries in imports_. | 677 intptr_t num_imports_; // Number of entries in imports_. |
| 678 intptr_t num_imported_into_; // Number of entries in imported_into_. | 678 intptr_t num_imported_into_; // Number of entries in imported_into_. |
| 679 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. | 679 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. |
| 680 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 680 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
| 681 bool corelib_imported_; | 681 bool corelib_imported_; |
| 682 bool debuggable_; // True if debugger can stop in library. |
| 682 int8_t load_state_; // Of type LibraryState. | 683 int8_t load_state_; // Of type LibraryState. |
| 683 | 684 |
| 684 friend class Isolate; | 685 friend class Isolate; |
| 685 }; | 686 }; |
| 686 | 687 |
| 687 | 688 |
| 688 class RawLibraryPrefix : public RawObject { | 689 class RawLibraryPrefix : public RawObject { |
| 689 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 690 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
| 690 | 691 |
| 691 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 692 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 kExternalUint64Array == kByteArray + 18 && | 1496 kExternalUint64Array == kByteArray + 18 && |
| 1496 kExternalFloat32Array == kByteArray + 19 && | 1497 kExternalFloat32Array == kByteArray + 19 && |
| 1497 kExternalFloat64Array == kByteArray + 20 && | 1498 kExternalFloat64Array == kByteArray + 20 && |
| 1498 kClosure == kByteArray + 21); | 1499 kClosure == kByteArray + 21); |
| 1499 return (index >= kByteArray && index <= kClosure); | 1500 return (index >= kByteArray && index <= kClosure); |
| 1500 } | 1501 } |
| 1501 | 1502 |
| 1502 } // namespace dart | 1503 } // namespace dart |
| 1503 | 1504 |
| 1504 #endif // VM_RAW_OBJECT_H_ | 1505 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |