Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: runtime/vm/class_finalizer.h

Issue 23453024: Keep track of type parameter processing in mixin application classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
86 static void FinalizeClass(const Class& cls); 86 static void FinalizeClass(const Class& cls);
87 87
88 // Verify that the classes have been properly prefinalized. This is 88 // Verify that the classes have been properly prefinalized. This is
89 // needed during bootstrapping where the classes have been preloaded. 89 // needed during bootstrapping where the classes have been preloaded.
90 static void VerifyBootstrapClasses(); 90 static void VerifyBootstrapClasses();
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.
97 static void ApplyMixinType(const Class& mixin_app_class);
98
96 private: 99 private:
97 static bool IsSuperCycleFree(const Class& cls); 100 static bool IsSuperCycleFree(const Class& cls);
98 static bool IsParameterTypeCycleFree(const Class& cls, 101 static bool IsParameterTypeCycleFree(const Class& cls,
99 const AbstractType& type, 102 const AbstractType& type,
100 GrowableArray<intptr_t>* visited); 103 GrowableArray<intptr_t>* visited);
101 static bool IsAliasCycleFree(const Class& cls, 104 static bool IsAliasCycleFree(const Class& cls,
102 GrowableArray<intptr_t>* visited); 105 GrowableArray<intptr_t>* visited);
103 static void CheckForLegalConstClass(const Class& cls); 106 static void CheckForLegalConstClass(const Class& cls);
104 static RawClass* ResolveClass(const Class& cls, 107 static RawClass* ResolveClass(const Class& cls,
105 const UnresolvedClass& unresolved_class, 108 const UnresolvedClass& unresolved_class,
106 Error* ambiguity_error); 109 Error* ambiguity_error);
107 static void ResolveRedirectingFactoryTarget( 110 static void ResolveRedirectingFactoryTarget(
108 const Class& cls, 111 const Class& cls,
109 const Function& factory, 112 const Function& factory,
110 const GrowableObjectArray& visited_factories); 113 const GrowableObjectArray& visited_factories);
111 static void CloneTypeParameters(const Class& mixapp_class); 114 static void CloneTypeParameters(const Class& mixin_app_class);
112 static void ApplyMixinTypes(const Class& cls); 115 static void ApplyMixinMembers(const Class& cls);
113 static void ApplyMixin(const Class& cls);
114 static void CreateForwardingConstructors( 116 static void CreateForwardingConstructors(
115 const Class& mixin_app, 117 const Class& mixin_app,
116 const GrowableObjectArray& cloned_funcs); 118 const GrowableObjectArray& cloned_funcs);
117 static void CollectTypeArguments(const Class& cls, 119 static void CollectTypeArguments(const Class& cls,
118 const Type& type, 120 const Type& type,
119 const GrowableObjectArray& collected_args); 121 const GrowableObjectArray& collected_args);
120 static RawType* ResolveMixinAppType(const Class& cls, 122 static RawType* ResolveMixinAppType(const Class& cls,
121 const MixinAppType& mixin_app); 123 const MixinAppType& mixin_app);
122 static void ResolveSuperTypeAndInterfaces(const Class& cls, 124 static void ResolveSuperTypeAndInterfaces(const Class& cls,
123 GrowableArray<intptr_t>* visited); 125 GrowableArray<intptr_t>* visited);
(...skipping 29 matching lines...) Expand all
153 static void ReportError(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 155 static void ReportError(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
154 156
155 // Verify implicit offsets recorded in the VM for direct access to fields of 157 // Verify implicit offsets recorded in the VM for direct access to fields of
156 // Dart instances (e.g: _TypedListView, _ByteDataView). 158 // Dart instances (e.g: _TypedListView, _ByteDataView).
157 static void VerifyImplicitFieldOffsets(); 159 static void VerifyImplicitFieldOffsets();
158 }; 160 };
159 161
160 } // namespace dart 162 } // namespace dart
161 163
162 #endif // VM_CLASS_FINALIZER_H_ 164 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698