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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 2968003004: Revert "The current growth strategy for growable arrays allocates a backing array of size 2 at (emp… (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/stacktrace.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc
index 1db6629772b285c9dd4c0405e3d57021a52ef494..f1c3ffc618fe7c9aec21ee40485b19aeaaf9a49f 100644
--- a/runtime/vm/class_finalizer.cc
+++ b/runtime/vm/class_finalizer.cc
@@ -2429,7 +2429,7 @@ void ClassFinalizer::ApplyMixinMembers(const Class& cls) {
cloned_funcs.Add(func);
}
}
- functions = Array::MakeFixedLength(cloned_funcs);
+ functions = Array::MakeArray(cloned_funcs);
cls.SetFunctions(functions);
// Now clone the fields from the mixin class. There should be no
@@ -2666,8 +2666,7 @@ void ClassFinalizer::FinalizeClass(const Class& cls) {
const Class& mixin_cls = Class::Handle(mixin_type.type_class());
CreateForwardingConstructors(cls, mixin_cls, cloned_funcs);
- const Array& functions =
- Array::Handle(Array::MakeFixedLength(cloned_funcs));
+ const Array& functions = Array::Handle(Array::MakeArray(cloned_funcs));
cls.SetFunctions(functions);
}
// Every class should have at least a constructor, unless it is a top level
« no previous file with comments | « runtime/lib/stacktrace.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698