Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 04e559503683ed04ba89859b22455b2b841fb900..f92bbf439e83a7eab2e41ec5ef8942e67a1b97cf 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -4142,49 +4142,6 @@ void BinaryDoubleOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
} |
-LocationSummary* DoubleTestOpInstr::MakeLocationSummary(Zone* zone, |
- bool opt) const { |
- const intptr_t kNumInputs = 1; |
- const intptr_t kNumTemps = 0; |
- LocationSummary* summary = new(zone) LocationSummary( |
- zone, kNumInputs, kNumTemps, LocationSummary::kNoCall); |
- summary->set_in(0, Location::RequiresFpuRegister()); |
- summary->set_out(0, Location::RequiresRegister()); |
- return summary; |
-} |
- |
- |
-void DoubleTestOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
- ASSERT(compiler->is_optimizing()); |
- const DRegister value = EvenDRegisterOf(locs()->in(0).fpu_reg()); |
- const Register result = locs()->out(0).reg(); |
- if (op_kind() == MethodRecognizer::kDouble_getIsNaN) { |
- __ LoadObject(result, Bool::False()); |
- __ vcmpd(value, value); |
- __ vmstat(); |
- __ LoadObject(result, Bool::True(), VS); |
- } else { |
- ASSERT(op_kind() == MethodRecognizer::kDouble_getIsInfinite); |
- Label done; |
- // TMP <- value[0:31], result <- value[32:63] |
- __ vmovrrd(TMP, result, value); |
- __ cmp(TMP, Operand(0)); |
- __ LoadObject(result, Bool::False(), NE); |
- __ b(&done, NE); |
- |
- // Mask off the sign bit. |
- __ AndImmediate(result, result, 0x7FFFFFFF); |
- // Compare with +infinity. |
- __ CompareImmediate(result, 0x7FF00000); |
- __ LoadObject(result, Bool::False(), NE); |
- __ b(&done, NE); |
- |
- __ LoadObject(result, Bool::True()); |
- __ Bind(&done); |
- } |
-} |
- |
- |
LocationSummary* BinaryFloat32x4OpInstr::MakeLocationSummary(Zone* zone, |
bool opt) const { |
const intptr_t kNumInputs = 2; |