Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 7ef2016809fb8db0516b882eff1eed8899b2c273..2b5e5ff644486e575f7f733d52c5e5ea86a7daa4 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -879,9 +879,8 @@ void CodeStubAssembler::BranchIfToBooleanIsTrue(Node* value, Label* if_true, |
MachineType::Float64()); |
// Check if the floating point {value} is neither 0.0, -0.0 nor NaN. |
- Node* zero = Float64Constant(0.0); |
- GotoIf(Float64LessThan(zero, value_value), if_true); |
- Branch(Float64LessThan(value_value, zero), if_true, if_false); |
+ Branch(Float64LessThan(Float64Constant(0.0), Float64Abs(value_value)), |
+ if_true, if_false); |
} |
Bind(&if_valueisother); |