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

Unified Diff: src/arm/lithium-arm.cc

Issue 6625084: ARM: Improved double to integer truncation.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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: src/arm/lithium-arm.cc
===================================================================
--- src/arm/lithium-arm.cc (revision 7092)
+++ src/arm/lithium-arm.cc (working copy)
@@ -1599,7 +1599,10 @@
bool needs_check = !instr->value()->type().IsSmi();
LInstruction* res = NULL;
if (needs_check) {
- res = DefineSameAsFirst(new LTaggedToI(value, FixedTemp(d1)));
+ res = DefineSameAsFirst(new LTaggedToI(value,
+ TempRegister(),
+ FixedTemp(d1),
+ FixedTemp(d2)));
} else {
res = DefineSameAsFirst(new LSmiUntag(value, needs_check));
}
@@ -1623,7 +1626,7 @@
} else {
ASSERT(to.IsInteger32());
LOperand* value = UseRegister(instr->value());
- LDoubleToI* res = new LDoubleToI(value, TempRegister());
+ LDoubleToI* res = new LDoubleToI(value, TempRegister(), FixedTemp(d1));
return AssignEnvironment(DefineAsRegister(res));
}
} else if (from.IsInteger32()) {

Powered by Google App Engine
This is Rietveld 408576698