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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
791 RawString* url_; | 791 RawString* url_; |
792 RawScript* script_; | 792 RawScript* script_; |
793 RawString* private_key_; | 793 RawString* private_key_; |
794 RawArray* dictionary_; // Top-level names in this library. | 794 RawArray* dictionary_; // Top-level names in this library. |
795 RawArray* resolved_names_; // Cache of resolved names in library scope. | 795 RawArray* resolved_names_; // Cache of resolved names in library scope. |
796 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. | 796 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. |
797 RawArray* anonymous_classes_; // Classes containing top-level elements. | 797 RawArray* anonymous_classes_; // Classes containing top-level elements. |
798 RawArray* imports_; // List of Namespaces imported without prefix. | 798 RawArray* imports_; // List of Namespaces imported without prefix. |
799 RawArray* exports_; // List of re-exported Namespaces. | 799 RawArray* exports_; // List of re-exported Namespaces. |
800 RawArray* loaded_scripts_; // Array of scripts loaded in this library. | 800 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
801 RawObject* load_error_; // Error iff load_state_ == kLoadError. | |
Ivan Posva
2014/07/31 18:29:05
RawInstance*
hausner
2014/07/31 21:12:45
Done.
| |
801 RawObject** to() { | 802 RawObject** to() { |
802 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); | 803 return reinterpret_cast<RawObject**>(&ptr()->load_error_); |
803 } | 804 } |
804 | 805 |
805 int32_t index_; // Library id number. | 806 int32_t index_; // Library id number. |
806 int32_t num_imports_; // Number of entries in imports_. | 807 int32_t num_imports_; // Number of entries in imports_. |
807 int32_t num_anonymous_; // Number of entries in anonymous_classes_. | 808 int32_t num_anonymous_; // Number of entries in anonymous_classes_. |
808 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. | 809 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. |
809 Dart_NativeEntrySymbol native_entry_symbol_resolver_; | 810 Dart_NativeEntrySymbol native_entry_symbol_resolver_; |
810 bool corelib_imported_; | 811 bool corelib_imported_; |
811 bool is_dart_scheme_; | 812 bool is_dart_scheme_; |
812 bool debuggable_; // True if debugger can stop in library. | 813 bool debuggable_; // True if debugger can stop in library. |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1970 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 1971 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
1971 kTypedDataInt8ArrayViewCid + 15); | 1972 kTypedDataInt8ArrayViewCid + 15); |
1972 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 1973 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
1973 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 1974 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
1974 return (kNullCid - kTypedDataInt8ArrayCid); | 1975 return (kNullCid - kTypedDataInt8ArrayCid); |
1975 } | 1976 } |
1976 | 1977 |
1977 } // namespace dart | 1978 } // namespace dart |
1978 | 1979 |
1979 #endif // VM_RAW_OBJECT_H_ | 1980 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |