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

Unified Diff: runtime/lib/growable_array.dart

Issue 8321024: Clean up (most) uses of Array. Still more to come in the VM corelib code base. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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/arrays.dart ('k') | runtime/lib/immutable_map.dart » ('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 486)
+++ runtime/lib/growable_array.dart (working copy)
@@ -2,10 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class GrowableObjectArray<T> implements Array<T> {
- Array<T> backingArray;
+class GrowableObjectArray<T> implements List<T> {
+ ObjectArray<T> backingArray;
- void copyFrom(Array<Object> src, int srcStart, int dstStart, int count) {
+ void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
Arrays.copy(src, srcStart, this, dstStart, count);
}
@@ -131,7 +131,7 @@
}
void grow(int capacity) {
- Array<T> newArray = new ObjectArray<T>(capacity);
+ ObjectArray<T> newArray = new ObjectArray<T>(capacity);
int length = backingArray.length;
for (int i = 0; i < length; i++) {
newArray[i] = backingArray[i];
« no previous file with comments | « runtime/lib/arrays.dart ('k') | runtime/lib/immutable_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698