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

Unified Diff: vm/object.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/dart_api_impl_test.cc ('k') | vm/object_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.cc
===================================================================
--- vm/object.cc (revision 849)
+++ vm/object.cc (working copy)
@@ -557,6 +557,12 @@
type = Type::NewNonParameterizedType(cls);
object_store->set_bool_interface(type);
+ name = String::NewSymbol("List");
+ cls = Class::NewInterface(name, script);
+ core_lib.AddClass(cls);
+ type = Type::NewNonParameterizedType(cls);
+ object_store->set_list_interface(type);
+
// The classes 'Null', 'Dynamic', and 'void' are not registered in the class
// dictionary and are not named, but corresponding types are stored in the
// object store.
« no previous file with comments | « vm/dart_api_impl_test.cc ('k') | vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698