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

Unified Diff: runtime/vm/class_finalizer.h

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.h
===================================================================
--- runtime/vm/class_finalizer.h (revision 11197)
+++ runtime/vm/class_finalizer.h (working copy)
@@ -27,21 +27,6 @@
// finalized.
class ClassFinalizer : public AllStatic {
public:
- enum {
- kGeneratingSnapshot = true,
- kNotGeneratingSnapshot = false
- };
-
- // Add 'interface' to 'interface_list' if it is not already in the list and
- // return true. Also return true if 'interface' is not added, because it is
- // not unique, i.e. it is already in the list.
- // Return false if 'interface' conflicts with an interface already in the list
- // with the same class, but different type arguments.
- // In the case of a conflict, set 'conflicting' to the existing interface.
- static bool AddInterfaceIfUnique(const GrowableObjectArray& interface_list,
- const AbstractType& interface,
- AbstractType* conflicting);
-
// Modes for type resolution and finalization. The ordering is relevant.
enum FinalizationKind {
kIgnore, // Parsed type is ignored and replaced by Dynamic.
@@ -77,20 +62,15 @@
// The function returns true if the finalization was successful.
// If finalization fails, an error message is set in the sticky error field
// in the object store.
- static bool FinalizePendingClasses() {
- return FinalizePendingClasses(kNotGeneratingSnapshot);
- }
- static bool FinalizePendingClassesForSnapshotCreation() {
- return FinalizePendingClasses(kGeneratingSnapshot);
- }
+ static bool FinalizePendingClasses();
- // Verify that the pending classes have been properly prefinalized. This is
+
+ // Verify that the classes have been properly prefinalized. This is
// needed during bootstrapping where the classes have been preloaded.
static void VerifyBootstrapClasses();
private:
- static bool FinalizePendingClasses(bool generating_snapshot);
- static void FinalizeClass(const Class& cls, bool generating_snapshot);
+ static void FinalizeClass(const Class& cls);
static bool IsSuperCycleFree(const Class& cls);
static bool IsAliasCycleFree(const Class& cls,
GrowableArray<intptr_t>* visited);
@@ -113,7 +93,6 @@
const Function& function);
static void ResolveAndFinalizeMemberTypes(const Class& cls);
static void PrintClassInformation(const Class& cls);
- static void VerifyClassImplements(const Class& cls);
static void CollectInterfaces(const Class& cls,
const GrowableObjectArray& interfaces);
static void ReportError(const Error& error);
« 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