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

Unified Diff: runtime/lib/growable_array.dart

Issue 10982045: Make data setter private on GrowableObjectArray. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix intrinsifier. Created 8 years, 3 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 | runtime/lib/lib_impl_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/growable_array.dart
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart
index d695d92be233a2df2c0477d6956c83c12ba317f5..1b9262b3cfd284baa5adfbc1eb2c06f10e00246a 100644
--- a/runtime/lib/growable_array.dart
+++ b/runtime/lib/growable_array.dart
@@ -108,7 +108,7 @@ class GrowableObjectArray<T> implements List<T> {
void _setLength(int new_length) native "GrowableObjectArray_setLength";
- void set data(ObjectArray<T> array) native "GrowableObjectArray_setData";
+ void _setData(ObjectArray<T> array) native "GrowableObjectArray_setData";
T operator [](int index) native "GrowableObjectArray_getIndexed";
@@ -163,7 +163,7 @@ class GrowableObjectArray<T> implements List<T> {
for (int i = 0; i < length; i++) {
new_data[i] = this[i];
}
- data = new_data;
+ _setData(new_data);
}
/**
« no previous file with comments | « no previous file | runtime/lib/lib_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698