Revision: 12039
Author: [email protected]
Date: Wed Jul 11 03:08:56 2012
Log: Fix compile errors in Visual C++ 2008.
[email protected]
BUG=None
TEST=ARM compiles on VC 2008.
Review URL: https://chromiumcodereview.appspot.com/10690111
Patch from Sigurður Ásgeirsson <[email protected]>.
http://code.google.com/p/v8/source/detail?r=12039
Modified:
/branches/bleeding_edge/src/arm/assembler-arm.cc
=======================================
--- /branches/bleeding_edge/src/arm/assembler-arm.cc Thu Jun 14 04:16:47
2012
+++ /branches/bleeding_edge/src/arm/assembler-arm.cc Wed Jul 11 03:08:56
2012
@@ -80,8 +80,8 @@
void CpuFeatures::Probe() {
- unsigned standard_features = (OS::CpuFeaturesImpliedByPlatform() |
- CpuFeaturesImpliedByCompiler());
+ unsigned standard_features = static_cast<unsigned>(
+ OS::CpuFeaturesImpliedByPlatform() | CpuFeaturesImpliedByCompiler());
ASSERT(supported_ == 0 || supported_ == standard_features);
#ifdef DEBUG
initialized_ = true;
@@ -746,7 +746,7 @@
}
}
} else if ((*instr & kCmpCmnMask) == kCmpCmnPattern) {
- if (fits_shifter(-imm32, rotate_imm, immed_8, NULL)) {
+ if (fits_shifter(-static_cast<int>(imm32), rotate_imm, immed_8,
NULL)) {
*instr ^= kCmpCmnFlip;
return true;
}
@@ -754,7 +754,7 @@
Instr alu_insn = (*instr & kALUMask);
if (alu_insn == ADD ||
alu_insn == SUB) {
- if (fits_shifter(-imm32, rotate_imm, immed_8, NULL)) {
+ if (fits_shifter(-static_cast<int>(imm32), rotate_imm, immed_8,
NULL)) {
*instr ^= kAddSubFlip;
return true;
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev