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

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
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/object.cc » ('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 22688)
+++ runtime/lib/growable_array.dart (working copy)
@@ -3,10 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class _GrowableObjectArray<T> implements List<T> {
- factory _GrowableObjectArray._uninstantiable() {
- throw new UnsupportedError(
- "GrowableObjectArray can only be allocated by the VM");
- }
+ static final int _classId = (new _GrowableObjectArray(0))._cid;
void insert(int index, T element) {
if (index < 0 || index > length) {
« no previous file with comments | « runtime/lib/array.dart ('k') | runtime/lib/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698