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

Unified Diff: runtime/vm/class_finalizer.h

Issue 1305223006: Remove allocation in old space .... (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Formatting Created 5 years, 3 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
diff --git a/runtime/vm/class_finalizer.h b/runtime/vm/class_finalizer.h
index a43689f9729215527838a28ab82d510932259770..0b8d7c50c9e749213d35d9b1015cab0d4c894c84 100644
--- a/runtime/vm/class_finalizer.h
+++ b/runtime/vm/class_finalizer.h
@@ -15,6 +15,8 @@ namespace dart {
// finalized.
class ClassFinalizer : public AllStatic {
public:
+ typedef ZoneGrowableHandlePtrArray<const AbstractType> PendingTypes;
+
// Modes for type resolution and finalization. The ordering is relevant.
enum FinalizationKind {
kIgnore, // Type is ignored and replaced by dynamic.
@@ -32,7 +34,7 @@ class ClassFinalizer : public AllStatic {
const Class& cls,
const AbstractType& type,
FinalizationKind finalization,
- GrowableObjectArray* pending_types = NULL);
+ PendingTypes* pending_types = NULL);
// Allocate, finalize, and return a new malformed type as if it was declared
// in class cls at the given token position.
@@ -95,7 +97,7 @@ class ClassFinalizer : public AllStatic {
// Apply the mixin type to the mixin application class.
static void ApplyMixinType(const Class& mixin_app_class,
- GrowableObjectArray* pending_types = NULL);
+ PendingTypes* pending_types = NULL);
private:
static void AllocateEnumValues(const Class& enum_cls);
@@ -130,16 +132,16 @@ class ClassFinalizer : public AllStatic {
static void ResolveSuperTypeAndInterfaces(const Class& cls,
GrowableArray<intptr_t>* visited);
static void FinalizeTypeParameters(const Class& cls,
- GrowableObjectArray* pending_types = NULL);
+ PendingTypes* pending_types = NULL);
static void FinalizeTypeArguments(const Class& cls,
const TypeArguments& arguments,
intptr_t num_uninitialized_arguments,
Error* bound_error,
- GrowableObjectArray* pending_types,
+ PendingTypes* pending_types,
TrailPtr trail);
static void CheckRecursiveType(const Class& cls,
const Type& type,
- GrowableObjectArray* pending_types);
+ PendingTypes* pending_types);
static void CheckTypeBounds(const Class& cls, const Type& type);
static void CheckTypeArgumentBounds(const Class& cls,
const TypeArguments& arguments,
« 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