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

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

Issue 8585004: Support correct factory syntax in the VM as decribed in the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Verify that the pending classes have been properly prefinalized. This is 53 // Verify that the pending classes have been properly prefinalized. This is
54 // needed during bootstrapping where the classes have been preloaded. 54 // needed during bootstrapping where the classes have been preloaded.
55 static void VerifyBootstrapClasses(); 55 static void VerifyBootstrapClasses();
56 56
57 private: 57 private:
58 static void FinalizeClass(const Class& cls); 58 static void FinalizeClass(const Class& cls);
59 static bool IsSuperCycleFree(const Class& cls); 59 static bool IsSuperCycleFree(const Class& cls);
60 static void CheckForLegalConstClass(const Class& cls); 60 static void CheckForLegalConstClass(const Class& cls);
61 static RawClass* ResolveClass(const Class& cls, 61 static RawClass* ResolveClass(const Class& cls,
62 const UnresolvedClass& unresolved_class); 62 const UnresolvedClass& unresolved_class);
63 static void ResolveSuperClass(const Class& cls); 63 static void ResolveSuperType(const Class& cls);
64 static void ResolveDefaultClass(const Class& cls); 64 static void ResolveFactoryClass(const Class& cls);
65 static void ResolveInterfaces(const Class& cls, 65 static void ResolveInterfaces(const Class& cls,
66 GrowableArray<const Class*>* visited); 66 GrowableArray<const Class*>* visited);
67 static void FinalizeTypeArguments(const Class& cls, 67 static void FinalizeTypeArguments(const Class& cls,
68 const TypeArguments& arguments); 68 const TypeArguments& arguments);
69 static RawType* ResolveType(const Class& cls, const Type& type); 69 static RawType* ResolveType(const Class& cls, const Type& type);
70 static RawType* FinalizeType(const Type& type); 70 static RawType* FinalizeType(const Type& type);
71 static void ResolveAndFinalizeUpperBounds(const Class& cls); 71 static void ResolveAndFinalizeUpperBounds(const Class& cls);
72 static void VerifyUpperBounds(const Class& cls, 72 static void VerifyUpperBounds(const Class& cls,
73 const TypeArguments& arguments); 73 const TypeArguments& arguments);
74 static void ResolveAndFinalizeSignature(const Class& cls, 74 static void ResolveAndFinalizeSignature(const Class& cls,
75 const Function& function); 75 const Function& function);
76 static void ResolveAndFinalizeMemberTypes(const Class& cls); 76 static void ResolveAndFinalizeMemberTypes(const Class& cls);
77 static void PrintClassInformation(const Class& cls); 77 static void PrintClassInformation(const Class& cls);
78 static void VerifyClassImplements(const Class& cls); 78 static void VerifyClassImplements(const Class& cls);
79 static void CollectInterfaces(const Class& cls, 79 static void CollectInterfaces(const Class& cls,
80 GrowableArray<const Class*>* interfaces); 80 GrowableArray<const Class*>* interfaces);
81 static void ReportError(const Script& script, 81 static void ReportError(const Script& script,
82 intptr_t token_index, 82 intptr_t token_index,
83 const char* format, ...); 83 const char* format, ...);
84 static void ReportError(const char* format, ...); 84 static void ReportError(const char* format, ...);
85 static void ReportWarning(const char* format, ...);
85 }; 86 };
86 87
87 } // namespace dart 88 } // namespace dart
88 89
89 #endif // VM_CLASS_FINALIZER_H_ 90 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/class_finalizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698