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

Unified Diff: runtime/vm/service.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/raw_object.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index 19ff7983b1341ba13eb564679650390244f26527..ff0056d28d7f81f5fabe87eec4de38ae9f54ca21 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -2353,9 +2353,8 @@ static bool Evaluate(Thread* thread, JSONStream* js) {
if (BuildScope(thread, js, names, values)) {
return true;
}
- const Array& names_array = Array::Handle(zone, Array::MakeFixedLength(names));
- const Array& values_array =
- Array::Handle(zone, Array::MakeFixedLength(values));
+ const Array& names_array = Array::Handle(zone, Array::MakeArray(names));
+ const Array& values_array = Array::Handle(zone, Array::MakeArray(values));
const String& expr_str = String::Handle(zone, String::New(expr));
ObjectIdRing::LookupResult lookup_result;
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698