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

Unified Diff: runtime/vm/object_store.cc

Issue 10800002: Hide names of internal classes from the user by mapping them to the documented (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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_store.cc
===================================================================
--- runtime/vm/object_store.cc (revision 9744)
+++ runtime/vm/object_store.cc (working copy)
@@ -17,6 +17,7 @@
function_interface_(Type::null()),
number_interface_(Type::null()),
int_interface_(Type::null()),
+ integer_implementation_class_(Class::null()),
smi_class_(Class::null()),
mint_class_(Class::null()),
bigint_class_(Class::null()),
@@ -139,6 +140,7 @@
RawClass* ObjectStore::GetClass(int index) {
switch (index) {
case kObjectClass: return object_class_;
+ case kIntegerImplementationClass: return integer_implementation_class_;
case kSmiClass: return smi_class_;
case kMintClass: return mint_class_;
case kBigintClass: return bigint_class_;
@@ -186,6 +188,8 @@
ASSERT(raw_class->IsHeapObject());
if (raw_class == object_class_) {
return kObjectClass;
+ } else if (raw_class == integer_implementation_class_) {
+ return kIntegerImplementationClass;
} else if (raw_class == smi_class_) {
return kSmiClass;
} else if (raw_class == mint_class_) {
« runtime/vm/object_store.h ('K') | « runtime/vm/object_store.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698