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

Unified Diff: runtime/vm/service.cc

Issue 2949803002: New growth strategy for growable arrays (Closed)
Patch Set: Branch-free grow size computation. Renamed function names to be clearer. Created 3 years, 6 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 0d134e86371811d3bcae2afc6087014e140ebe10..554b11007a132510fcfc49489de3b01bbd516772 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -2353,8 +2353,9 @@ static bool Evaluate(Thread* thread, JSONStream* js) {
if (BuildScope(thread, js, names, values)) {
return true;
}
- const Array& names_array = Array::Handle(zone, Array::MakeArray(names));
- const Array& values_array = Array::Handle(zone, Array::MakeArray(values));
+ const Array& names_array = Array::Handle(zone, Array::MakeFixedLength(names));
+ const Array& values_array =
+ Array::Handle(zone, Array::MakeFixedLength(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