| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // Resolve the type and target of the redirecting factory. | 92 // Resolve the type and target of the redirecting factory. |
| 93 static void ResolveRedirectingFactory(const Class& cls, | 93 static void ResolveRedirectingFactory(const Class& cls, |
| 94 const Function& factory); | 94 const Function& factory); |
| 95 | 95 |
| 96 // Apply the mixin type to the mixin application class. | 96 // Apply the mixin type to the mixin application class. |
| 97 static void ApplyMixinType(const Class& mixin_app_class); | 97 static void ApplyMixinType(const Class& mixin_app_class); |
| 98 | 98 |
| 99 private: | 99 private: |
| 100 static bool IsSuperCycleFree(const Class& cls); | 100 static bool IsSuperCycleFree(const Class& cls); |
| 101 static bool IsParameterTypeCycleFree(const Class& cls, | 101 static bool IsTypeCycleFree(const Class& cls, |
| 102 const AbstractType& type, | 102 const AbstractType& type, |
| 103 GrowableArray<intptr_t>* visited); | 103 GrowableArray<intptr_t>* visited); |
| 104 static bool IsAliasCycleFree(const Class& cls, | 104 static bool IsAliasCycleFree(const Class& cls, |
| 105 GrowableArray<intptr_t>* visited); | 105 GrowableArray<intptr_t>* visited); |
| 106 static bool IsMixinCycleFree(const Class& cls, | 106 static bool IsMixinCycleFree(const Class& cls, |
| 107 GrowableArray<intptr_t>* visited); | 107 GrowableArray<intptr_t>* visited); |
| 108 static void CheckForLegalConstClass(const Class& cls); | 108 static void CheckForLegalConstClass(const Class& cls); |
| 109 static RawClass* ResolveClass(const Class& cls, | 109 static RawClass* ResolveClass(const Class& cls, |
| 110 const UnresolvedClass& unresolved_class); | 110 const UnresolvedClass& unresolved_class); |
| 111 static void ResolveRedirectingFactoryTarget( | 111 static void ResolveRedirectingFactoryTarget( |
| 112 const Class& cls, | 112 const Class& cls, |
| 113 const Function& factory, | 113 const Function& factory, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); | 157 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); |
| 158 | 158 |
| 159 // Verify implicit offsets recorded in the VM for direct access to fields of | 159 // Verify implicit offsets recorded in the VM for direct access to fields of |
| 160 // Dart instances (e.g: _TypedListView, _ByteDataView). | 160 // Dart instances (e.g: _TypedListView, _ByteDataView). |
| 161 static void VerifyImplicitFieldOffsets(); | 161 static void VerifyImplicitFieldOffsets(); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace dart | 164 } // namespace dart |
| 165 | 165 |
| 166 #endif // VM_CLASS_FINALIZER_H_ | 166 #endif // VM_CLASS_FINALIZER_H_ |
| OLD | NEW |