| 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 #include "vm/object.h" | 10 #include "vm/object.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 static void CheckTypeBounds(const Class& cls, const Type& type); | 143 static void CheckTypeBounds(const Class& cls, const Type& type); |
| 144 static void CheckTypeArgumentBounds(const Class& cls, | 144 static void CheckTypeArgumentBounds(const Class& cls, |
| 145 const TypeArguments& arguments, | 145 const TypeArguments& arguments, |
| 146 Error* bound_error); | 146 Error* bound_error); |
| 147 static void ResolveUpperBounds(const Class& cls); | 147 static void ResolveUpperBounds(const Class& cls); |
| 148 static void FinalizeUpperBounds(const Class& cls); | 148 static void FinalizeUpperBounds(const Class& cls); |
| 149 static void ResolveAndFinalizeSignature(const Class& cls, | 149 static void ResolveAndFinalizeSignature(const Class& cls, |
| 150 const Function& function); | 150 const Function& function); |
| 151 static void ResolveAndFinalizeMemberTypes(const Class& cls); | 151 static void ResolveAndFinalizeMemberTypes(const Class& cls); |
| 152 static void PrintClassInformation(const Class& cls); | 152 static void PrintClassInformation(const Class& cls); |
| 153 static void CollectInterfaces(const Class& cls, | 153 static void CollectInterfaces( |
| 154 const GrowableObjectArray& interfaces); | 154 const Class& cls, GrowableArray<const Class*>* collected); |
| 155 |
| 155 static void MarkTypeMalformed(const Error& prev_error, | 156 static void MarkTypeMalformed(const Error& prev_error, |
| 156 const Script& script, | 157 const Script& script, |
| 157 const Type& type, | 158 const Type& type, |
| 158 const char* format, | 159 const char* format, |
| 159 va_list args); | 160 va_list args); |
| 160 static void ReportError(const Error& error); | 161 static void ReportError(const Error& error); |
| 161 static void ReportError(const Class& cls, | 162 static void ReportError(const Class& cls, |
| 162 intptr_t token_pos, | 163 intptr_t token_pos, |
| 163 const char* format, ...) PRINTF_ATTRIBUTE(3, 4); | 164 const char* format, ...) PRINTF_ATTRIBUTE(3, 4); |
| 164 static void ReportErrors(const Error& prev_error, | 165 static void ReportErrors(const Error& prev_error, |
| 165 const Class& cls, | 166 const Class& cls, |
| 166 intptr_t token_pos, | 167 intptr_t token_pos, |
| 167 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); | 168 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); |
| 168 | 169 |
| 169 // Verify implicit offsets recorded in the VM for direct access to fields of | 170 // Verify implicit offsets recorded in the VM for direct access to fields of |
| 170 // Dart instances (e.g: _TypedListView, _ByteDataView). | 171 // Dart instances (e.g: _TypedListView, _ByteDataView). |
| 171 static void VerifyImplicitFieldOffsets(); | 172 static void VerifyImplicitFieldOffsets(); |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 } // namespace dart | 175 } // namespace dart |
| 175 | 176 |
| 176 #endif // VM_CLASS_FINALIZER_H_ | 177 #endif // VM_CLASS_FINALIZER_H_ |
| OLD | NEW |