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

Unified Diff: vm/snapshot.cc

Issue 10869035: Add smi_type, mint_type and double_type to the predefined types list for script snapshots. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
« no previous file with comments | « no previous file | vm/snapshot_ids.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.cc
===================================================================
--- vm/snapshot.cc (revision 11270)
+++ vm/snapshot.cc (working copy)
@@ -61,6 +61,9 @@
case kVoidType: return object_store->void_type();
case kFunctionType: return object_store->function_type();
case kNumberType: return object_store->number_type();
+ case kSmiType: return object_store->smi_type();
+ case kMintType: return object_store->mint_type();
+ case kDoubleType: return object_store->double_type();
case kDoubleInterface: return object_store->double_interface();
case kIntInterface: return object_store->int_interface();
case kBoolInterface: return object_store->bool_interface();
@@ -88,6 +91,12 @@
return kFunctionType;
} else if (raw_type == object_store->number_type()) {
return kNumberType;
+ } else if (raw_type == object_store->smi_type()) {
+ return kSmiType;
+ } else if (raw_type == object_store->mint_type()) {
+ return kMintType;
+ } else if (raw_type == object_store->double_type()) {
+ return kDoubleType;
} else if (raw_type == object_store->double_interface()) {
return kDoubleInterface;
} else if (raw_type == object_store->int_interface()) {
« no previous file with comments | « no previous file | vm/snapshot_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698