Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index 05ad5aa1a34779b4bf39cea677083ea00ce237df..4040337e0ce423cea62f10502d96575b9b92b48c 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -393,7 +393,7 @@ void InstructionSelector::VisitInt64Mul(Node* node) { |
Int64BinopMatcher m(node); |
// TODO(dusmil): Add optimization for shifts larger than 32. |
if (m.right().HasValue() && m.right().Value() > 0) { |
- int64_t value = m.right().Value(); |
+ int32_t value = static_cast<int32_t>(m.right().Value()); |
if (base::bits::IsPowerOfTwo32(value)) { |
Emit(kMips64Dshl | AddressingModeField::encode(kMode_None), |
g.DefineAsRegister(node), g.UseRegister(m.left().node()), |
@@ -666,8 +666,8 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) { |
FrameStateDescriptor* frame_state_descriptor = nullptr; |
if (descriptor->NeedsFrameState()) { |
- frame_state_descriptor = |
- GetFrameStateDescriptor(node->InputAt(descriptor->InputCount())); |
+ frame_state_descriptor = GetFrameStateDescriptor( |
+ node->InputAt(static_cast<int>(descriptor->InputCount()))); |
} |
CallBuffer buffer(zone(), descriptor, frame_state_descriptor); |
@@ -675,12 +675,12 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) { |
// Compute InstructionOperands for inputs and outputs. |
InitializeCallBuffer(node, &buffer, true, false); |
- int push_count = buffer.pushed_nodes.size(); |
+ const int32_t push_count = static_cast<int32_t>(buffer.pushed_nodes.size()); |
if (push_count > 0) { |
Emit(kMips64StackClaim, g.NoOutput(), |
g.TempImmediate(push_count << kPointerSizeLog2)); |
} |
- int slot = buffer.pushed_nodes.size() - 1; |
+ int32_t slot = push_count - 1; |
for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
g.TempImmediate(slot << kPointerSizeLog2)); |
@@ -771,12 +771,12 @@ void InstructionSelector::VisitTailCall(Node* node) { |
// Compute InstructionOperands for inputs and outputs. |
InitializeCallBuffer(node, &buffer, true, false); |
- int push_count = buffer.pushed_nodes.size(); |
+ const int32_t push_count = static_cast<int32_t>(buffer.pushed_nodes.size()); |
if (push_count > 0) { |
Emit(kMips64StackClaim, g.NoOutput(), |
g.TempImmediate(push_count << kPointerSizeLog2)); |
} |
- int slot = buffer.pushed_nodes.size() - 1; |
+ int slot = push_count - 1; |
for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
g.TempImmediate(slot << kPointerSizeLog2)); |