Revision: 11888
Author: [email protected]
Date: Wed Jun 20 07:22:32 2012
Log: Fix Windows build.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10578039
http://code.google.com/p/v8/source/detail?r=11888
Modified:
/branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc
/branches/bleeding_edge/src/x64/lithium-codegen-x64.cc
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed Jun 20
07:08:03 2012
+++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed Jun 20
07:22:32 2012
@@ -1083,9 +1083,9 @@
static_cast<double>(static_cast<uint64_t>(1) << shift) /
divisor_abs;
int64_t multiplier;
if (multiplier_f - floor(multiplier_f) < 0.5) {
- multiplier = floor(multiplier_f);
+ multiplier = static_cast<int64_t>(floor(multiplier_f));
} else {
- multiplier = floor(multiplier_f) + 1;
+ multiplier = static_cast<int64_t>(floor(multiplier_f)) + 1;
}
// The multiplier is a uint32.
ASSERT(multiplier > 0 &&
@@ -1096,7 +1096,7 @@
__ test(dividend, dividend);
DeoptimizeIf(zero, instr->environment());
}
- __ mov(edx, multiplier);
+ __ mov(edx, static_cast<int32_t>(multiplier));
__ imul(edx);
if (static_cast<int32_t>(multiplier) < 0) {
__ add(edx, scratch);
=======================================
--- /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Wed Jun 20
07:08:03 2012
+++ /branches/bleeding_edge/src/x64/lithium-codegen-x64.cc Wed Jun 20
07:22:32 2012
@@ -945,9 +945,9 @@
static_cast<double>(static_cast<uint64_t>(1) << shift) /
divisor_abs;
int64_t multiplier;
if (multiplier_f - floor(multiplier_f) < 0.5) {
- multiplier = floor(multiplier_f);
+ multiplier = static_cast<int64_t>(floor(multiplier_f));
} else {
- multiplier = floor(multiplier_f) + 1;
+ multiplier = static_cast<int64_t>(floor(multiplier_f)) + 1;
}
// The multiplier is a uint32.
ASSERT(multiplier > 0 &&
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev