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

Unified Diff: runtime/lib/growable_array.dart

Issue 11882005: Fix performance of array literals (e.g. "[1, 2]"). Improves speed of DeltaBlue. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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/array_patch.dart ('k') | runtime/vm/intrinsifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
===================================================================
--- runtime/lib/growable_array.dart (revision 16982)
+++ runtime/lib/growable_array.dart (working copy)
@@ -74,14 +74,14 @@
factory _GrowableObjectArray(int length) {
var data = new _ObjectArray<T>((length == 0) ? 4 : length);
- var result = new _GrowableObjectArray<T>.fromObjectArray(data);
+ var result = new _GrowableObjectArray<T>.withData(data);
result._setLength(length);
return result;
}
factory _GrowableObjectArray.withCapacity(int capacity) {
var data = new _ObjectArray<T>((capacity == 0)? 4 : capacity);
- return new _GrowableObjectArray<T>.fromObjectArray(data);
+ return new _GrowableObjectArray<T>.withData(data);
}
factory _GrowableObjectArray.from(Collection<T> other) {
@@ -90,7 +90,7 @@
return result;
}
- factory _GrowableObjectArray.fromObjectArray(_ObjectArray<T> data)
+ factory _GrowableObjectArray.withData(_ObjectArray<T> data)
native "GrowableObjectArray_allocate";
int get length native "GrowableObjectArray_getLength";
« no previous file with comments | « runtime/lib/array_patch.dart ('k') | runtime/vm/intrinsifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698