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

Unified Diff: runtime/lib/growable_array.dart

Issue 14703005: Added Object._cid getter, optimized it. Added to (some) classes a static final _clCid. Use those to… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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
Index: runtime/lib/growable_array.dart
===================================================================
--- runtime/lib/growable_array.dart (revision 22603)
+++ runtime/lib/growable_array.dart (working copy)
@@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
class _GrowableObjectArray<T> implements List<T> {
+ static final int _clCid = []._cid;
Ivan Posva 2013/05/13 22:12:37 Same problem about relying on the default List con
srdjan 2013/05/14 17:46:31 Done.
+
factory _GrowableObjectArray._uninstantiable() {
Ivan Posva 2013/05/13 22:12:37 Of topic: Is this constructor still needed here?
srdjan 2013/05/14 17:46:31 Removed
throw new UnsupportedError(
"GrowableObjectArray can only be allocated by the VM");

Powered by Google App Engine
This is Rietveld 408576698