Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index e2381af1446fa1a6689869193390638a3895d019..e564ff7f0db14a0d6304bbbd632c7f3947999122 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -3649,7 +3649,9 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) { |
// Math.sqrt(-Infinity) == NaN |
Label done; |
__ Move(temp, static_cast<double>(-V8_INFINITY)); |
+ // Set up Infinity. |
__ Neg_d(result, temp); |
+ // result is overwritten if the branch is not taken. |
__ BranchF(&done, NULL, eq, temp, input); |
// Add +0 to convert -0 to +0. |