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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 11027026: Renaming Unboxed* IL instructions to shorter names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed indentation Created 8 years, 2 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 | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 13224)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -1202,31 +1202,37 @@
}
-RawAbstractType* UnboxedMintBinaryOpInstr::CompileType() const {
+RawAbstractType* BinaryMintOpInstr::CompileType() const {
return Type::IntType();
}
-intptr_t UnboxedMintBinaryOpInstr::ResultCid() const {
+intptr_t BinaryMintOpInstr::ResultCid() const {
return kDynamicCid;
}
-RawAbstractType* UnboxedMintUnaryOpInstr::CompileType() const {
+RawAbstractType* UnaryMintOpInstr::CompileType() const {
return Type::IntType();
}
-intptr_t UnboxedMintUnaryOpInstr::ResultCid() const {
+intptr_t UnaryMintOpInstr::ResultCid() const {
return kDynamicCid;
}
-RawAbstractType* UnboxedDoubleBinaryOpInstr::CompileType() const {
+RawAbstractType* BinaryDoubleOpInstr::CompileType() const {
return Type::Double();
}
+intptr_t BinaryDoubleOpInstr::ResultCid() const {
+ // The output is not an instance but when it is boxed it becomes double.
+ return kDoubleCid;
+}
+
+
RawAbstractType* MathSqrtInstr::CompileType() const {
return Type::Double();
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698