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

Unified Diff: runtime/vm/mirrors_api_impl.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/vm/method_recognizer.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/mirrors_api_impl.cc
diff --git a/runtime/vm/mirrors_api_impl.cc b/runtime/vm/mirrors_api_impl.cc
index f367e3b5a4147ba59b34b814beb030a9c80d7151..933aefc752f22dc795fc7c5a42de48c17f288e32 100644
--- a/runtime/vm/mirrors_api_impl.cc
+++ b/runtime/vm/mirrors_api_impl.cc
@@ -124,7 +124,7 @@ DART_EXPORT Dart_Handle Dart_GetFunctionNames(Dart_Handle target) {
return Api::NewError(
"%s expects argument 'target' to be a class or library.", CURRENT_FUNC);
}
- return Api::NewHandle(T, Array::MakeFixedLength(names));
+ return Api::NewHandle(T, Array::MakeArray(names));
}
@@ -336,7 +336,7 @@ DART_EXPORT Dart_Handle Dart_LibraryGetClassNames(Dart_Handle library) {
name = cls.UserVisibleName();
names.Add(name);
}
- return Api::NewHandle(T, Array::MakeFixedLength(names));
+ return Api::NewHandle(T, Array::MakeArray(names));
}
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698