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

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

Issue 735723003: Implement enum types in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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) 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Resolve the type and target of the redirecting factory. 103 // Resolve the type and target of the redirecting factory.
104 static void ResolveRedirectingFactory(const Class& cls, 104 static void ResolveRedirectingFactory(const Class& cls,
105 const Function& factory); 105 const Function& factory);
106 106
107 // Apply the mixin type to the mixin application class. 107 // Apply the mixin type to the mixin application class.
108 static void ApplyMixinType(const Class& mixin_app_class, 108 static void ApplyMixinType(const Class& mixin_app_class,
109 GrowableObjectArray* pending_types = NULL); 109 GrowableObjectArray* pending_types = NULL);
110 110
111 private: 111 private:
112 static void AllocateEnumValues(const Class& enum_cls);
112 static bool IsSuperCycleFree(const Class& cls); 113 static bool IsSuperCycleFree(const Class& cls);
113 static bool IsTypeCycleFree(const Class& cls, 114 static bool IsTypeCycleFree(const Class& cls,
114 const AbstractType& type, 115 const AbstractType& type,
115 GrowableArray<intptr_t>* visited); 116 GrowableArray<intptr_t>* visited);
116 static bool IsAliasCycleFree(const Class& cls, 117 static bool IsAliasCycleFree(const Class& cls,
117 GrowableArray<intptr_t>* visited); 118 GrowableArray<intptr_t>* visited);
118 static bool IsMixinCycleFree(const Class& cls, 119 static bool IsMixinCycleFree(const Class& cls,
119 GrowableArray<intptr_t>* visited); 120 GrowableArray<intptr_t>* visited);
120 static void CheckForLegalConstClass(const Class& cls); 121 static void CheckForLegalConstClass(const Class& cls);
121 static RawClass* ResolveClass(const Class& cls, 122 static RawClass* ResolveClass(const Class& cls,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); 178 const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
178 179
179 // Verify implicit offsets recorded in the VM for direct access to fields of 180 // Verify implicit offsets recorded in the VM for direct access to fields of
180 // Dart instances (e.g: _TypedListView, _ByteDataView). 181 // Dart instances (e.g: _TypedListView, _ByteDataView).
181 static void VerifyImplicitFieldOffsets(); 182 static void VerifyImplicitFieldOffsets();
182 }; 183 };
183 184
184 } // namespace dart 185 } // namespace dart
185 186
186 #endif // VM_CLASS_FINALIZER_H_ 187 #endif // VM_CLASS_FINALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698