Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 8c26fb3301efb98d59b84e75e2c85a257cb0ce0c..6f0cd2a6be64eba63284980c49b8b6bef6dc6de5 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -566,19 +566,6 @@ void FullCodeGenerator::DoTest(Label* if_true, |
Label* if_false, |
Label* fall_through) { |
if (CpuFeatures::IsSupported(FPU)) { |
- CpuFeatures::Scope scope(FPU); |
- // Emit the inlined tests assumed by the stub. |
- __ LoadRoot(at, Heap::kUndefinedValueRootIndex); |
- __ Branch(if_false, eq, result_register(), Operand(at)); |
- __ LoadRoot(at, Heap::kTrueValueRootIndex); |
- __ Branch(if_true, eq, result_register(), Operand(at)); |
- __ LoadRoot(at, Heap::kFalseValueRootIndex); |
- __ Branch(if_false, eq, result_register(), Operand(at)); |
- STATIC_ASSERT(kSmiTag == 0); |
- __ Branch(if_false, eq, result_register(), Operand(zero_reg)); |
- __ JumpIfSmi(result_register(), if_true); |
- |
- // Call the ToBoolean stub for all other cases. |
ToBooleanStub stub(result_register()); |
__ CallStub(&stub); |
__ mov(at, zero_reg); |
@@ -589,8 +576,6 @@ void FullCodeGenerator::DoTest(Label* if_true, |
__ CallRuntime(Runtime::kToBool, 1); |
__ LoadRoot(at, Heap::kFalseValueRootIndex); |
} |
- |
- // The stub returns nonzero for true. |
Split(ne, v0, Operand(at), if_true, if_false, fall_through); |
} |