Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index ca0bb9f9c0c852351870c9633a5946ef2a2639e6..c437d5e895f99f8c2ab857b946e2d468a022471b 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -119,7 +119,7 @@ class MipsOperandConverter final : public InstructionOperandConverter { |
MemOperand ToMemOperand(InstructionOperand* op) const { |
DCHECK_NOT_NULL(op); |
- DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |
+ DCHECK(op->IsStackSlot() || op->IsFPStackSlot()); |
return SlotToMemOperand(AllocatedOperand::cast(op)->index()); |
} |
@@ -1276,7 +1276,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
__ sdc1(i.InputDoubleRegister(2), i.MemoryOperand()); |
break; |
case kMipsPush: |
- if (instr->InputAt(0)->IsDoubleRegister()) { |
+ if (instr->InputAt(0)->IsFPRegister()) { |
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, -kDoubleSize)); |
__ Subu(sp, sp, Operand(kDoubleSize)); |
frame_access_state()->IncreaseSPDelta(kDoubleSize / kPointerSize); |
@@ -1291,7 +1291,7 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
break; |
} |
case kMipsStoreToStackSlot: { |
- if (instr->InputAt(0)->IsDoubleRegister()) { |
+ if (instr->InputAt(0)->IsFPRegister()) { |
__ sdc1(i.InputDoubleRegister(0), MemOperand(sp, i.InputInt32(1))); |
} else { |
__ sw(i.InputRegister(0), MemOperand(sp, i.InputInt32(1))); |
@@ -1841,7 +1841,7 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
} |
if (destination->IsStackSlot()) __ sw(dst, g.ToMemOperand(destination)); |
} else if (src.type() == Constant::kFloat32) { |
- if (destination->IsDoubleStackSlot()) { |
+ if (destination->IsFPStackSlot()) { |
MemOperand dst = g.ToMemOperand(destination); |
__ li(at, Operand(bit_cast<int32_t>(src.ToFloat32()))); |
__ sw(at, dst); |
@@ -1851,27 +1851,27 @@ void CodeGenerator::AssembleMove(InstructionOperand* source, |
} |
} else { |
DCHECK_EQ(Constant::kFloat64, src.type()); |
- DoubleRegister dst = destination->IsDoubleRegister() |
+ DoubleRegister dst = destination->IsFPRegister() |
? g.ToDoubleRegister(destination) |
: kScratchDoubleReg; |
__ Move(dst, src.ToFloat64()); |
- if (destination->IsDoubleStackSlot()) { |
+ if (destination->IsFPStackSlot()) { |
__ sdc1(dst, g.ToMemOperand(destination)); |
} |
} |
- } else if (source->IsDoubleRegister()) { |
+ } else if (source->IsFPRegister()) { |
FPURegister src = g.ToDoubleRegister(source); |
- if (destination->IsDoubleRegister()) { |
+ if (destination->IsFPRegister()) { |
FPURegister dst = g.ToDoubleRegister(destination); |
__ Move(dst, src); |
} else { |
- DCHECK(destination->IsDoubleStackSlot()); |
+ DCHECK(destination->IsFPStackSlot()); |
__ sdc1(src, g.ToMemOperand(destination)); |
} |
- } else if (source->IsDoubleStackSlot()) { |
- DCHECK(destination->IsDoubleRegister() || destination->IsDoubleStackSlot()); |
+ } else if (source->IsFPStackSlot()) { |
+ DCHECK(destination->IsFPRegister() || destination->IsFPStackSlot()); |
MemOperand src = g.ToMemOperand(source); |
- if (destination->IsDoubleRegister()) { |
+ if (destination->IsFPRegister()) { |
__ ldc1(g.ToDoubleRegister(destination), src); |
} else { |
FPURegister temp = kScratchDoubleReg; |
@@ -1915,23 +1915,23 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source, |
__ lw(temp_1, dst); |
__ sw(temp_0, dst); |
__ sw(temp_1, src); |
- } else if (source->IsDoubleRegister()) { |
+ } else if (source->IsFPRegister()) { |
FPURegister temp = kScratchDoubleReg; |
FPURegister src = g.ToDoubleRegister(source); |
- if (destination->IsDoubleRegister()) { |
+ if (destination->IsFPRegister()) { |
FPURegister dst = g.ToDoubleRegister(destination); |
__ Move(temp, src); |
__ Move(src, dst); |
__ Move(dst, temp); |
} else { |
- DCHECK(destination->IsDoubleStackSlot()); |
+ DCHECK(destination->IsFPStackSlot()); |
MemOperand dst = g.ToMemOperand(destination); |
__ Move(temp, src); |
__ ldc1(src, dst); |
__ sdc1(temp, dst); |
} |
- } else if (source->IsDoubleStackSlot()) { |
- DCHECK(destination->IsDoubleStackSlot()); |
+ } else if (source->IsFPStackSlot()) { |
+ DCHECK(destination->IsFPStackSlot()); |
Register temp_0 = kScratchReg; |
FPURegister temp_1 = kScratchDoubleReg; |
MemOperand src0 = g.ToMemOperand(source); |