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

Unified Diff: runtime/vm/intermediate_language.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
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object_store.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 10679)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -809,16 +809,12 @@
// TODO(srdjan): Add mint, smi and double type to object store.
regis 2012/08/14 21:56:33 Remove TODO.
srdjan 2012/08/14 22:52:08 Done.
// TODO(srdjan): Convert to use with class-ids instead of types.
if (operands_type() == kMintOperands) {
- ObjectStore* object_store = Isolate::Current()->object_store();
- return Type::NewNonParameterizedType(
- Class::Handle(object_store->mint_class()));
+ return Isolate::Current()->object_store()->mint_type();
} else if (op_kind() == Token::kSHL) {
return Type::IntInterface();
} else {
ASSERT(operands_type() == kSmiOperands);
- ObjectStore* object_store = Isolate::Current()->object_store();
- return Type::NewNonParameterizedType(
- Class::Handle(object_store->smi_class()));
+ return Isolate::Current()->object_store()->smi_type();
}
}
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698