| 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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 RawString* name_; | 1016 RawString* name_; |
| 1017 RawString* url_; | 1017 RawString* url_; |
| 1018 RawScript* script_; | 1018 RawScript* script_; |
| 1019 RawString* private_key_; | 1019 RawString* private_key_; |
| 1020 RawArray* dictionary_; // Top-level names in this library. | 1020 RawArray* dictionary_; // Top-level names in this library. |
| 1021 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. | 1021 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. |
| 1022 RawClass* toplevel_class_; // Class containing top-level elements. | 1022 RawClass* toplevel_class_; // Class containing top-level elements. |
| 1023 RawGrowableObjectArray* patch_classes_; | 1023 RawGrowableObjectArray* patch_classes_; |
| 1024 RawArray* imports_; // List of Namespaces imported without prefix. | 1024 RawArray* imports_; // List of Namespaces imported without prefix. |
| 1025 RawArray* exports_; // List of re-exported Namespaces. | 1025 RawArray* exports_; // List of re-exported Namespaces. |
| 1026 RawArray* exports2_; // Copy of exports_, used by background |
| 1027 // compiler to detect cycles without colliding |
| 1028 // with mutator thread lookups. |
| 1026 RawInstance* load_error_; // Error iff load_state_ == kLoadError. | 1029 RawInstance* load_error_; // Error iff load_state_ == kLoadError. |
| 1027 RawObject** to_snapshot() { | 1030 RawObject** to_snapshot() { |
| 1028 return reinterpret_cast<RawObject**>(&ptr()->load_error_); | 1031 return reinterpret_cast<RawObject**>(&ptr()->load_error_); |
| 1029 } | 1032 } |
| 1030 RawArray* resolved_names_; // Cache of resolved names in library scope. | 1033 RawArray* resolved_names_; // Cache of resolved names in library scope. |
| 1031 RawArray* loaded_scripts_; // Array of scripts loaded in this library. | 1034 RawArray* loaded_scripts_; // Array of scripts loaded in this library. |
| 1032 RawObject** to() { | 1035 RawObject** to() { |
| 1033 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); | 1036 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); |
| 1034 } | 1037 } |
| 1035 | 1038 |
| (...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2363 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2361 kTypedDataInt8ArrayViewCid + 15); | 2364 kTypedDataInt8ArrayViewCid + 15); |
| 2362 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2365 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2363 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2366 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2364 return (kNullCid - kTypedDataInt8ArrayCid); | 2367 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2365 } | 2368 } |
| 2366 | 2369 |
| 2367 } // namespace dart | 2370 } // namespace dart |
| 2368 | 2371 |
| 2369 #endif // VM_RAW_OBJECT_H_ | 2372 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |