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

Unified Diff: vm/object_store.cc

Issue 9594028: Add a first class GrowableObjectArray type in the VM and use it internally in the VM at all spots w… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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 | « vm/object_store.h ('k') | vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object_store.cc
===================================================================
--- vm/object_store.cc (revision 5060)
+++ vm/object_store.cc (working copy)
@@ -34,6 +34,7 @@
list_interface_(Type::null()),
array_class_(Class::null()),
immutable_array_class_(Class::null()),
+ growable_object_array_class_(Class::null()),
byte_array_interface_(Type::null()),
internal_byte_array_class_(Class::null()),
external_byte_array_class_(Class::null()),
@@ -49,7 +50,7 @@
native_wrappers_library_(Library::null()),
root_library_(Library::null()),
registered_libraries_(Library::null()),
- pending_classes_(Array::null()),
+ pending_classes_(GrowableObjectArray::null()),
sticky_error_(Error::null()),
empty_context_(Context::null()),
stack_overflow_(Instance::null()),
@@ -131,6 +132,7 @@
case kBoolClass: return bool_class_;
case kArrayClass: return array_class_;
case kImmutableArrayClass: return immutable_array_class_;
+ case kGrowableObjectArrayClass: return growable_object_array_class_;
case kInternalByteArrayClass: return internal_byte_array_class_;
case kExternalByteArrayClass: return external_byte_array_class_;
case kStacktraceClass: return stacktrace_class_;
@@ -172,6 +174,8 @@
return kArrayClass;
} else if (raw_class == immutable_array_class_) {
return kImmutableArrayClass;
+ } else if (raw_class == growable_object_array_class_) {
+ return kGrowableObjectArrayClass;
} else if (raw_class == internal_byte_array_class_) {
return kInternalByteArrayClass;
} else if (raw_class == external_byte_array_class_) {
« no previous file with comments | « vm/object_store.h ('k') | vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698