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

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

Issue 211963003: Detect and reject illegal recursive types (non-contractive types). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/class_finalizer.cc » ('J')
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 static RawType* ResolveMixinAppType(const Class& cls, 138 static RawType* ResolveMixinAppType(const Class& cls,
139 const MixinAppType& mixin_app_type); 139 const MixinAppType& mixin_app_type);
140 static void ResolveSuperTypeAndInterfaces(const Class& cls, 140 static void ResolveSuperTypeAndInterfaces(const Class& cls,
141 GrowableArray<intptr_t>* visited); 141 GrowableArray<intptr_t>* visited);
142 static void FinalizeTypeParameters(const Class& cls, 142 static void FinalizeTypeParameters(const Class& cls,
143 GrowableObjectArray* pending_types = NULL); 143 GrowableObjectArray* pending_types = NULL);
144 static void FinalizeTypeArguments(const Class& cls, 144 static void FinalizeTypeArguments(const Class& cls,
145 const TypeArguments& arguments, 145 const TypeArguments& arguments,
146 intptr_t num_uninitialized_arguments, 146 intptr_t num_uninitialized_arguments,
147 Error* bound_error, 147 Error* bound_error,
148 GrowableObjectArray* pending_types); 148 GrowableObjectArray* pending_types,
149 GrowableObjectArray* trail);
150 static void CheckRecursiveType(const Class& cls,
151 const Type& type,
152 GrowableObjectArray* pending_types);
149 static void CheckTypeBounds(const Class& cls, const Type& type); 153 static void CheckTypeBounds(const Class& cls, const Type& type);
150 static void CheckTypeArgumentBounds(const Class& cls, 154 static void CheckTypeArgumentBounds(const Class& cls,
151 const TypeArguments& arguments, 155 const TypeArguments& arguments,
152 Error* bound_error); 156 Error* bound_error);
153 static void ResolveUpperBounds(const Class& cls); 157 static void ResolveUpperBounds(const Class& cls);
154 static void FinalizeUpperBounds(const Class& cls); 158 static void FinalizeUpperBounds(const Class& cls);
155 static void ResolveAndFinalizeSignature(const Class& cls, 159 static void ResolveAndFinalizeSignature(const Class& cls,
156 const Function& function); 160 const Function& function);
157 static void ResolveAndFinalizeMemberTypes(const Class& cls); 161 static void ResolveAndFinalizeMemberTypes(const Class& cls);
158 static void PrintClassInformation(const Class& cls); 162 static void PrintClassInformation(const Class& cls);
(...skipping 11 matching lines...) Expand all
170 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); 174 const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
171 175
172 // Verify implicit offsets recorded in the VM for direct access to fields of 176 // Verify implicit offsets recorded in the VM for direct access to fields of
173 // Dart instances (e.g: _TypedListView, _ByteDataView). 177 // Dart instances (e.g: _TypedListView, _ByteDataView).
174 static void VerifyImplicitFieldOffsets(); 178 static void VerifyImplicitFieldOffsets();
175 }; 179 };
176 180
177 } // namespace dart 181 } // namespace dart
178 182
179 #endif // VM_CLASS_FINALIZER_H_ 183 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/class_finalizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698