[mips] Fix typos introduced by previous commit.
authorBenedikt Meurer <bmeurer@chromium.org>
Fri, 19 Dec 2014 11:34:31 +0000 (12:34 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Fri, 19 Dec 2014 11:34:50 +0000 (11:34 +0000)
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/814203002

Cr-Commit-Position: refs/heads/master@{#25899}

src/mips/code-stubs-mips.cc
src/mips/lithium-codegen-mips.cc
src/mips64/code-stubs-mips64.cc
src/mips64/lithium-codegen-mips64.cc

index 6d7892d..befe77a 100644 (file)
@@ -857,7 +857,7 @@ void MathPowStub::Generate(MacroAssembler* masm) {
       // double_scratch can be overwritten in the delay slot.
       // Calculates square root of base.  Check for the special case of
       // Math.pow(-Infinity, 0.5) == Infinity (ECMA spec, 15.8.2.13).
-      __ Move(double_scratch, std::numeric_limits<double>::infinity());
+      __ Move(double_scratch, -std::numeric_limits<double>::infinity());
       __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, double_base, double_scratch);
       __ neg_d(double_result, double_scratch);
 
@@ -877,7 +877,7 @@ void MathPowStub::Generate(MacroAssembler* masm) {
       // double_scratch can be overwritten in the delay slot.
       // Calculates square root of base.  Check for the special case of
       // Math.pow(-Infinity, -0.5) == 0 (ECMA spec, 15.8.2.13).
-      __ Move(double_scratch, std::numeric_limits<double>::infinity());
+      __ Move(double_scratch, -std::numeric_limits<double>::infinity());
       __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, double_base, double_scratch);
       __ Move(double_result, kDoubleRegZero);
 
index 0045489..b52d7e9 100644 (file)
@@ -3844,7 +3844,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) {
   // Math.pow(-Infinity, 0.5) == Infinity
   // Math.sqrt(-Infinity) == NaN
   Label done;
-  __ Move(temp, std::numeric_limits<double>::infinity());
+  __ Move(temp, -std::numeric_limits<double>::infinity());
   __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
   // Set up Infinity in the delay slot.
   // result is overwritten if the branch is not taken.
index 892ae2a..49df8ea 100644 (file)
@@ -853,7 +853,7 @@ void MathPowStub::Generate(MacroAssembler* masm) {
       // double_scratch can be overwritten in the delay slot.
       // Calculates square root of base.  Check for the special case of
       // Math.pow(-Infinity, 0.5) == Infinity (ECMA spec, 15.8.2.13).
-      __ Move(double_scratch, std::numeric_limits<double>::infinity());
+      __ Move(double_scratch, -std::numeric_limits<double>::infinity());
       __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, double_base, double_scratch);
       __ neg_d(double_result, double_scratch);
 
@@ -873,7 +873,7 @@ void MathPowStub::Generate(MacroAssembler* masm) {
       // double_scratch can be overwritten in the delay slot.
       // Calculates square root of base.  Check for the special case of
       // Math.pow(-Infinity, -0.5) == 0 (ECMA spec, 15.8.2.13).
-      __ Move(double_scratch, std::numeric_limits<double>::infinity());
+      __ Move(double_scratch, -std::numeric_limits<double>::infinity());
       __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, double_base, double_scratch);
       __ Move(double_result, kDoubleRegZero);
 
index 9df5cca..cf8a1aa 100644 (file)
@@ -3876,7 +3876,7 @@ void LCodeGen::DoMathPowHalf(LMathPowHalf* instr) {
   // Math.pow(-Infinity, 0.5) == Infinity
   // Math.sqrt(-Infinity) == NaN
   Label done;
-  __ Move(temp, std::numeric_limits<double>::infinity());
+  __ Move(temp, -std::numeric_limits<double>::infinity());
   __ BranchF(USE_DELAY_SLOT, &done, NULL, eq, temp, input);
   // Set up Infinity in the delay slot.
   // result is overwritten if the branch is not taken.