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

Unified Diff: lib/growable_array.dart

Issue 12218082: - Remove redundant type parameters for internal data. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 10 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 | « no previous file | vm/intrinsifier.h » ('j') | vm/object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/growable_array.dart
===================================================================
--- lib/growable_array.dart (revision 18158)
+++ lib/growable_array.dart (working copy)
@@ -99,14 +99,14 @@
}
factory _GrowableObjectArray(int length) {
- var data = new _ObjectArray<T>((length == 0) ? 4 : length);
+ var data = new _ObjectArray((length == 0) ? 4 : length);
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);
+ var data = new _ObjectArray((capacity == 0)? 4 : capacity);
return new _GrowableObjectArray<T>.withData(data);
}
@@ -116,7 +116,7 @@
return result;
}
- factory _GrowableObjectArray.withData(_ObjectArray<T> data)
+ factory _GrowableObjectArray.withData(_ObjectArray data)
native "GrowableObjectArray_allocate";
int get length native "GrowableObjectArray_getLength";
@@ -136,7 +136,7 @@
void _setLength(int new_length) native "GrowableObjectArray_setLength";
- void _setData(_ObjectArray<T> array) native "GrowableObjectArray_setData";
+ void _setData(_ObjectArray array) native "GrowableObjectArray_setData";
T operator [](int index) native "GrowableObjectArray_getIndexed";
@@ -203,7 +203,7 @@
}
void _grow(int new_length) {
- var new_data = new _ObjectArray<T>(new_length);
+ var new_data = new _ObjectArray(new_length);
for (int i = 0; i < length; i++) {
new_data[i] = this[i];
}
« no previous file with comments | « no previous file | vm/intrinsifier.h » ('j') | vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698