Index: runtime/vm/class_finalizer.cc |
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc |
index 13ac6751d3612cac1c4d2e1a3ea87e1228f3a7be..dccc31a91f44da92e7996b231a71c1ac9255ac57 100644 |
--- a/runtime/vm/class_finalizer.cc |
+++ b/runtime/vm/class_finalizer.cc |
@@ -2422,7 +2422,7 @@ void ClassFinalizer::ApplyMixinMembers(const Class& cls) { |
cloned_funcs.Add(func); |
} |
} |
- functions = Array::MakeArray(cloned_funcs); |
+ functions = Array::MakeFixedLength(cloned_funcs); |
cls.SetFunctions(functions); |
// Now clone the fields from the mixin class. There should be no |
@@ -2657,7 +2657,8 @@ 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::MakeArray(cloned_funcs)); |
+ const Array& functions = |
+ Array::Handle(Array::MakeFixedLength(cloned_funcs)); |
cls.SetFunctions(functions); |
} |
// Every class should have at least a constructor, unless it is a top level |