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/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 kLoadInProgress, // Library is in the process of being loaded. | 1033 kLoadInProgress, // Library is in the process of being loaded. |
1034 kLoaded, // Library is loaded. | 1034 kLoaded, // Library is loaded. |
1035 kLoadError, // Error occurred during load of the Library. | 1035 kLoadError, // Error occurred during load of the Library. |
1036 }; | 1036 }; |
1037 | 1037 |
1038 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); | 1038 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); |
1039 | 1039 |
1040 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 1040 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
1041 RawString* name_; | 1041 RawString* name_; |
1042 RawString* url_; | 1042 RawString* url_; |
1043 RawScript* script_; | |
1044 RawString* private_key_; | 1043 RawString* private_key_; |
1045 RawArray* dictionary_; // Top-level names in this library. | 1044 RawArray* dictionary_; // Top-level names in this library. |
1046 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. | 1045 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. |
1047 RawClass* toplevel_class_; // Class containing top-level elements. | 1046 RawClass* toplevel_class_; // Class containing top-level elements. |
1048 RawGrowableObjectArray* patch_classes_; | 1047 RawGrowableObjectArray* patch_classes_; |
1049 RawArray* imports_; // List of Namespaces imported without prefix. | 1048 RawArray* imports_; // List of Namespaces imported without prefix. |
1050 RawArray* exports_; // List of re-exported Namespaces. | 1049 RawArray* exports_; // List of re-exported Namespaces. |
1051 RawInstance* load_error_; // Error iff load_state_ == kLoadError. | 1050 RawInstance* load_error_; // Error iff load_state_ == kLoadError. |
1052 RawObject** to_snapshot() { | 1051 RawObject** to_snapshot() { |
1053 return reinterpret_cast<RawObject**>(&ptr()->load_error_); | 1052 return reinterpret_cast<RawObject**>(&ptr()->load_error_); |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2421 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2420 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2422 kTypedDataInt8ArrayViewCid + 15); | 2421 kTypedDataInt8ArrayViewCid + 15); |
2423 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2422 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2424 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2423 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2425 return (kNullCid - kTypedDataInt8ArrayCid); | 2424 return (kNullCid - kTypedDataInt8ArrayCid); |
2426 } | 2425 } |
2427 | 2426 |
2428 } // namespace dart | 2427 } // namespace dart |
2429 | 2428 |
2430 #endif // VM_RAW_OBJECT_H_ | 2429 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |