Index: src/mips/codegen-mips.cc |
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc |
index 23b080ff4e4208717b0024819a9e9923cdd599e1..e874a0872a6622e2c3dec6088c39c5a09325bca3 100644 |
--- a/src/mips/codegen-mips.cc |
+++ b/src/mips/codegen-mips.cc |
@@ -62,7 +62,6 @@ double fast_exp_simulator(double x) { |
UnaryMathFunction CreateExpFunction() { |
- if (!CpuFeatures::IsSupported(FPU)) return &exp; |
if (!FLAG_fast_math) return &exp; |
size_t actual_size; |
byte* buffer = static_cast<byte*>(OS::Allocate(1 * KB, &actual_size, true)); |
@@ -72,7 +71,6 @@ UnaryMathFunction CreateExpFunction() { |
MacroAssembler masm(NULL, buffer, static_cast<int>(actual_size)); |
{ |
- CpuFeatureScope use_fpu(&masm, FPU); |
DoubleRegister input = f12; |
DoubleRegister result = f0; |
DoubleRegister double_scratch1 = f4; |
@@ -184,7 +182,6 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
// -- t0 : scratch (elements) |
// ----------------------------------- |
Label loop, entry, convert_hole, gc_required, only_change_map, done; |
- bool fpu_supported = CpuFeatures::IsSupported(FPU); |
Register scratch = t6; |
@@ -249,8 +246,6 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
// t2: end of destination FixedDoubleArray, not tagged |
// t3: begin of FixedDoubleArray element fields, not tagged |
- if (!fpu_supported) __ Push(a1, a0); |
- |
__ Branch(&entry); |
__ bind(&only_change_map); |
@@ -278,25 +273,11 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
__ UntagAndJumpIfNotSmi(t5, t5, &convert_hole); |
// Normal smi, convert to double and store. |
- if (fpu_supported) { |
- CpuFeatureScope scope(masm, FPU); |
- __ mtc1(t5, f0); |
- __ cvt_d_w(f0, f0); |
- __ sdc1(f0, MemOperand(t3)); |
- __ Addu(t3, t3, kDoubleSize); |
- } else { |
- FloatingPointHelper::ConvertIntToDouble(masm, |
- t5, |
- FloatingPointHelper::kCoreRegisters, |
- f0, |
- a0, |
- a1, |
- t7, |
- f0); |
- __ sw(a0, MemOperand(t3)); // mantissa |
- __ sw(a1, MemOperand(t3, kIntSize)); // exponent |
- __ Addu(t3, t3, kDoubleSize); |
- } |
+ __ mtc1(t5, f0); |
+ __ cvt_d_w(f0, f0); |
+ __ sdc1(f0, MemOperand(t3)); |
+ __ Addu(t3, t3, kDoubleSize); |
+ |
__ Branch(&entry); |
// Hole found, store the-hole NaN. |
@@ -315,7 +296,6 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
__ bind(&entry); |
__ Branch(&loop, lt, t3, Operand(t2)); |
- if (!fpu_supported) __ Pop(a1, a0); |
__ pop(ra); |
__ bind(&done); |
} |