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

Unified Diff: vm/object_store.h

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, 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
Index: vm/object_store.h
===================================================================
--- vm/object_store.h (revision 4983)
+++ vm/object_store.h (working copy)
@@ -50,6 +50,7 @@
kBoolClass,
kArrayClass,
kImmutableArrayClass,
+ kGrowableObjectArrayClass,
kInternalByteArrayClass,
kExternalByteArrayClass,
kStacktraceClass,
@@ -193,6 +194,16 @@
immutable_array_class_ = value.raw();
}
+ RawClass* growable_object_array_class() const {
+ return growable_object_array_class_;
+ }
+ void set_growable_object_array_class(const Class& value) {
+ growable_object_array_class_ = value.raw();
+ }
+ static intptr_t growable_object_array_class_offset() {
+ return OFFSET_OF(ObjectStore, growable_object_array_class_);
+ }
+
RawClass* internal_byte_array_class() const {
return internal_byte_array_class_;
}
@@ -273,8 +284,8 @@
registered_libraries_ = value.raw();
}
- RawArray* pending_classes() const { return pending_classes_; }
- void set_pending_classes(const Array& value) {
+ RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
+ void set_pending_classes(const GrowableObjectArray& value) {
ASSERT(!value.IsNull());
pending_classes_ = value.raw();
}
@@ -360,6 +371,7 @@
RawType* list_interface_;
RawClass* array_class_;
RawClass* immutable_array_class_;
+ RawClass* growable_object_array_class_;
RawType* byte_array_interface_;
RawClass* internal_byte_array_class_;
RawClass* external_byte_array_class_;
@@ -376,7 +388,7 @@
RawLibrary* native_wrappers_library_;
RawLibrary* root_library_;
RawLibrary* registered_libraries_;
- RawArray* pending_classes_;
+ RawGrowableObjectArray* pending_classes_;
RawError* sticky_error_;
RawContext* empty_context_;
RawInstance* stack_overflow_;

Powered by Google App Engine
This is Rietveld 408576698