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 4040337e0ce423cea62f10502d96575b9b92b48c..05ad5aa1a34779b4bf39cea677083ea00ce237df 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -393,7 +393,7 @@ |
Int64BinopMatcher m(node); |
// TODO(dusmil): Add optimization for shifts larger than 32. |
if (m.right().HasValue() && m.right().Value() > 0) { |
- int32_t value = static_cast<int32_t>(m.right().Value()); |
+ int64_t value = 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 @@ |
FrameStateDescriptor* frame_state_descriptor = nullptr; |
if (descriptor->NeedsFrameState()) { |
- frame_state_descriptor = GetFrameStateDescriptor( |
- node->InputAt(static_cast<int>(descriptor->InputCount()))); |
+ frame_state_descriptor = |
+ GetFrameStateDescriptor(node->InputAt(descriptor->InputCount())); |
} |
CallBuffer buffer(zone(), descriptor, frame_state_descriptor); |
@@ -675,12 +675,12 @@ |
// Compute InstructionOperands for inputs and outputs. |
InitializeCallBuffer(node, &buffer, true, false); |
- const int32_t push_count = static_cast<int32_t>(buffer.pushed_nodes.size()); |
+ int push_count = buffer.pushed_nodes.size(); |
if (push_count > 0) { |
Emit(kMips64StackClaim, g.NoOutput(), |
g.TempImmediate(push_count << kPointerSizeLog2)); |
} |
- int32_t slot = push_count - 1; |
+ int slot = buffer.pushed_nodes.size() - 1; |
for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
g.TempImmediate(slot << kPointerSizeLog2)); |
@@ -771,12 +771,12 @@ |
// Compute InstructionOperands for inputs and outputs. |
InitializeCallBuffer(node, &buffer, true, false); |
- const int32_t push_count = static_cast<int32_t>(buffer.pushed_nodes.size()); |
+ int push_count = buffer.pushed_nodes.size(); |
if (push_count > 0) { |
Emit(kMips64StackClaim, g.NoOutput(), |
g.TempImmediate(push_count << kPointerSizeLog2)); |
} |
- int slot = push_count - 1; |
+ int slot = buffer.pushed_nodes.size() - 1; |
for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
g.TempImmediate(slot << kPointerSizeLog2)); |