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_CLASS_FINALIZER_H_ | 5 #ifndef VM_CLASS_FINALIZER_H_ |
6 #define VM_CLASS_FINALIZER_H_ | 6 #define VM_CLASS_FINALIZER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // is an anonymous top level class). | 90 // is an anonymous top level class). |
91 static void FinalizeTypesInClass(const Class& cls); | 91 static void FinalizeTypesInClass(const Class& cls); |
92 | 92 |
93 // Finalize the class including its fields and functions. | 93 // Finalize the class including its fields and functions. |
94 static void FinalizeClass(const Class& cls); | 94 static void FinalizeClass(const Class& cls); |
95 | 95 |
96 // Verify that the classes have been properly prefinalized. This is | 96 // Verify that the classes have been properly prefinalized. This is |
97 // needed during bootstrapping where the classes have been preloaded. | 97 // needed during bootstrapping where the classes have been preloaded. |
98 static void VerifyBootstrapClasses(); | 98 static void VerifyBootstrapClasses(); |
99 | 99 |
| 100 // Resolve the class of the type, but not the type's type arguments. |
| 101 static void ResolveTypeClass(const Class& cls, const AbstractType& type); |
| 102 |
100 // Resolve the class of the type and the class of the type's type arguments. | 103 // Resolve the class of the type and the class of the type's type arguments. |
101 static void ResolveType(const Class& cls, const AbstractType& type); | 104 static void ResolveType(const Class& cls, const AbstractType& type); |
102 | 105 |
103 // Resolve the type and target of the redirecting factory. | 106 // Resolve the type and target of the redirecting factory. |
104 static void ResolveRedirectingFactory(const Class& cls, | 107 static void ResolveRedirectingFactory(const Class& cls, |
105 const Function& factory); | 108 const Function& factory); |
106 | 109 |
107 // Apply the mixin type to the mixin application class. | 110 // Apply the mixin type to the mixin application class. |
108 static void ApplyMixinType(const Class& mixin_app_class, | 111 static void ApplyMixinType(const Class& mixin_app_class, |
109 GrowableObjectArray* pending_types = NULL); | 112 GrowableObjectArray* pending_types = NULL); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); | 172 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); |
170 | 173 |
171 // Verify implicit offsets recorded in the VM for direct access to fields of | 174 // Verify implicit offsets recorded in the VM for direct access to fields of |
172 // Dart instances (e.g: _TypedListView, _ByteDataView). | 175 // Dart instances (e.g: _TypedListView, _ByteDataView). |
173 static void VerifyImplicitFieldOffsets(); | 176 static void VerifyImplicitFieldOffsets(); |
174 }; | 177 }; |
175 | 178 |
176 } // namespace dart | 179 } // namespace dart |
177 | 180 |
178 #endif // VM_CLASS_FINALIZER_H_ | 181 #endif // VM_CLASS_FINALIZER_H_ |
OLD | NEW |