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

Unified Diff: runtime/vm/object.cc

Issue 10823324: Added Smi, Mint and Double types to object store. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 10679)
+++ runtime/vm/object.cc (working copy)
@@ -740,6 +740,18 @@
type = Type::NewNonParameterizedType(cls);
object_store->set_byte_array_interface(type);
+ cls = object_store->smi_class();
+ type = Type::NewNonParameterizedType(cls);
+ object_store->set_smi_type(type);
+
+ cls = object_store->double_class();
+ type = Type::NewNonParameterizedType(cls);
+ object_store->set_double_type(type);
+
+ cls = object_store->mint_class();
+ type = Type::NewNonParameterizedType(cls);
+ object_store->set_mint_type(type);
+
// The classes 'Null' and 'void' are not registered in the class dictionary,
// because their names are reserved keywords. Their names are not heap
// allocated, because the classes reside in the VM isolate.

Powered by Google App Engine
This is Rietveld 408576698