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

Unified Diff: runtime/vm/object.cc

Issue 10873036: Add convenience static members of Type: Smi and Mint. (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
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 11249)
+++ runtime/vm/object.cc (working copy)
@@ -1914,11 +1914,6 @@
}
-bool Class::IsObjectClass() const {
- return id() == kInstanceCid;
-}
-
-
bool Class::IsCanonicalSignatureClass() const {
const Function& function = Function::Handle(signature_function());
return (!function.IsNull() && (function.signature_class() == raw()));
@@ -2702,6 +2697,16 @@
}
+RawType* Type::SmiType() {
+ return Isolate::Current()->object_store()->smi_type();
+}
+
+
+RawType* Type::MintType() {
+ return Isolate::Current()->object_store()->mint_type();
+}
+
+
RawType* Type::DoubleInterface() {
return Isolate::Current()->object_store()->double_interface();
}
« runtime/vm/intermediate_language.cc ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698