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

Unified Diff: vm/object_store.cc

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
« no previous file with comments | « vm/object_store.h ('k') | no next file » | 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 849)
+++ vm/object_store.cc (working copy)
@@ -27,6 +27,7 @@
four_byte_string_class_(Class::null()),
bool_interface_(Type::null()),
bool_class_(Class::null()),
+ list_interface_(Type::null()),
array_class_(Class::null()),
immutable_array_class_(Class::null()),
unhandled_exception_class_(Class::null()),
@@ -133,6 +134,7 @@
case kIntInterface: return int_interface();
case kBoolInterface: return bool_interface();
case kStringInterface: return string_interface();
+ case kListInterface: return list_interface();
default: break;
}
UNREACHABLE();
@@ -162,6 +164,8 @@
return kBoolInterface;
} else if (raw_type == string_interface()) {
return kStringInterface;
+ } else if (raw_type == list_interface()) {
+ return kListInterface;
}
return kInvalidIndex;
}
« no previous file with comments | « vm/object_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698