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

Unified Diff: vm/object_store.h

Issue 8417003: Enhance the array access API to deal with any objct that implements the list interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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
« vm/dart_api_impl.cc ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object_store.h
===================================================================
--- vm/object_store.h (revision 849)
+++ vm/object_store.h (working copy)
@@ -34,6 +34,7 @@
kIntInterface,
kBoolInterface,
kStringInterface,
+ kListInterface,
kObjectClass,
kSmiClass,
kMintClass,
@@ -131,6 +132,11 @@
RawClass* bool_class() const { return bool_class_; }
void set_bool_class(const Class& value) { bool_class_ = value.raw(); }
+ RawType* list_interface() const { return list_interface_; }
+ void set_list_interface(const Type& value) {
+ list_interface_ = value.raw();
+ }
+
RawClass* array_class() const { return array_class_; }
void set_array_class(const Class& value) { array_class_ = value.raw(); }
static intptr_t array_class_offset() {
@@ -255,6 +261,7 @@
RawClass* four_byte_string_class_;
RawType* bool_interface_;
RawClass* bool_class_;
+ RawType* list_interface_;
RawClass* array_class_;
RawClass* immutable_array_class_;
RawClass* unhandled_exception_class_;
« vm/dart_api_impl.cc ('K') | « vm/object.cc ('k') | vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698