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

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

Issue 19997003: Implement more restrictive checking of typedefs illegally referring to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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') | 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 FinalizeTypesInClass(const Class& cls); 86 static void FinalizeTypesInClass(const Class& cls);
87 87
88 static void FinalizeClass(const Class& cls); 88 static void FinalizeClass(const Class& cls);
89 89
90 // Verify that the classes have been properly prefinalized. This is 90 // Verify that the classes have been properly prefinalized. This is
91 // needed during bootstrapping where the classes have been preloaded. 91 // needed during bootstrapping where the classes have been preloaded.
92 static void VerifyBootstrapClasses(); 92 static void VerifyBootstrapClasses();
93 93
94 private: 94 private:
95 static bool IsSuperCycleFree(const Class& cls); 95 static bool IsSuperCycleFree(const Class& cls);
96 static bool IsParameterTypeCycleFree(const Class& cls,
97 const AbstractType& type,
98 GrowableArray<intptr_t>* visited);
96 static bool IsAliasCycleFree(const Class& cls, 99 static bool IsAliasCycleFree(const Class& cls,
97 GrowableArray<intptr_t>* visited); 100 GrowableArray<intptr_t>* visited);
98 static void CheckForLegalConstClass(const Class& cls); 101 static void CheckForLegalConstClass(const Class& cls);
99 static RawClass* ResolveClass(const Class& cls, 102 static RawClass* ResolveClass(const Class& cls,
100 const UnresolvedClass& unresolved_class, 103 const UnresolvedClass& unresolved_class,
101 Error* ambiguity_error); 104 Error* ambiguity_error);
102 static void ResolveRedirectingFactoryTarget( 105 static void ResolveRedirectingFactoryTarget(
103 const Class& cls, 106 const Class& cls,
104 const Function& factory, 107 const Function& factory,
105 const GrowableObjectArray& visited_factories); 108 const GrowableObjectArray& visited_factories);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 static void ReportError(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 151 static void ReportError(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
149 152
150 // Verify implicit offsets recorded in the VM for direct access to fields of 153 // Verify implicit offsets recorded in the VM for direct access to fields of
151 // Dart instances (e.g: _TypedListView, _ByteDataView). 154 // Dart instances (e.g: _TypedListView, _ByteDataView).
152 static void VerifyImplicitFieldOffsets(); 155 static void VerifyImplicitFieldOffsets();
153 }; 156 };
154 157
155 } // namespace dart 158 } // namespace dart
156 159
157 #endif // VM_CLASS_FINALIZER_H_ 160 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698