| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Finalize the types appearing in the declaration of class 'cls', i.e. its | 87 // Finalize the types appearing in the declaration of class 'cls', i.e. its |
| 88 // type parameters and their upper bounds, its super type and interfaces. | 88 // type parameters and their upper bounds, its super type and interfaces. |
| 89 // Note that the fields and functions have not been parsed yet (unless cls | 89 // Note that the fields and functions have not been parsed yet (unless cls |
| 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 #if defined(DART_NO_SNAPSHOT) |
| 96 // Verify that the classes have been properly prefinalized. This is | 97 // Verify that the classes have been properly prefinalized. This is |
| 97 // needed during bootstrapping where the classes have been preloaded. | 98 // needed during bootstrapping where the classes have been preloaded. |
| 98 static void VerifyBootstrapClasses(); | 99 static void VerifyBootstrapClasses(); |
| 100 #endif // defined(DART_NO_SNAPSHOT). |
| 99 | 101 |
| 100 // Resolve the class of the type, but not the type's type arguments. | 102 // Resolve the class of the type, but not the type's type arguments. |
| 101 static void ResolveTypeClass(const Class& cls, const AbstractType& type); | 103 static void ResolveTypeClass(const Class& cls, const AbstractType& type); |
| 102 | 104 |
| 103 // Resolve the type and target of the redirecting factory. | 105 // Resolve the type and target of the redirecting factory. |
| 104 static void ResolveRedirectingFactory(const Class& cls, | 106 static void ResolveRedirectingFactory(const Class& cls, |
| 105 const Function& factory); | 107 const Function& factory); |
| 106 | 108 |
| 107 // Apply the mixin type to the mixin application class. | 109 // Apply the mixin type to the mixin application class. |
| 108 static void ApplyMixinType(const Class& mixin_app_class, | 110 static void ApplyMixinType(const Class& mixin_app_class, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); | 180 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); |
| 179 | 181 |
| 180 // Verify implicit offsets recorded in the VM for direct access to fields of | 182 // Verify implicit offsets recorded in the VM for direct access to fields of |
| 181 // Dart instances (e.g: _TypedListView, _ByteDataView). | 183 // Dart instances (e.g: _TypedListView, _ByteDataView). |
| 182 static void VerifyImplicitFieldOffsets(); | 184 static void VerifyImplicitFieldOffsets(); |
| 183 }; | 185 }; |
| 184 | 186 |
| 185 } // namespace dart | 187 } // namespace dart |
| 186 | 188 |
| 187 #endif // VM_CLASS_FINALIZER_H_ | 189 #endif // VM_CLASS_FINALIZER_H_ |
| OLD | NEW |