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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 22266005: Inline fsin/fcos. Huge speedup on Box2D. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: runtime/vm/intermediate_language_arm.cc
===================================================================
--- runtime/vm/intermediate_language_arm.cc (revision 25800)
+++ runtime/vm/intermediate_language_arm.cc (working copy)
@@ -3622,7 +3622,7 @@
}
-LocationSummary* MathSqrtInstr::MakeLocationSummary() const {
+LocationSummary* MathUnaryInstr::MakeLocationSummary() const {
const intptr_t kNumInputs = 1;
const intptr_t kNumTemps = 0;
LocationSummary* summary =
@@ -3633,7 +3633,8 @@
}
-void MathSqrtInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+void MathUnaryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ ASSERT(kind() == MethodRecognizer::kMathSqrt);
Ivan Posva 2013/08/05 23:32:16 How about: if (kind() == MethodRecognizer::kMathSq
srdjan 2013/08/06 15:43:05 Done.
DRegister val = EvenDRegisterOf(locs()->in(0).fpu_reg());
DRegister result = EvenDRegisterOf(locs()->out().fpu_reg());
__ vsqrtd(result, val);

Powered by Google App Engine
This is Rietveld 408576698