Reviewers: Sven Panne,
Description:
[mips] Fix typos introduced by previous commit.
[email protected]
Please review this at https://codereview.chromium.org/814203002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+6, -6 lines):
M src/mips/code-stubs-mips.cc
M src/mips/lithium-codegen-mips.cc
M src/mips64/code-stubs-mips64.cc
M src/mips64/lithium-codegen-mips64.cc
Index: src/mips/code-stubs-mips.cc
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
index
6d7892d5c3f3434f1803981264d09f39a3e70729..befe77aa507ed855f7a6ed43b5faf2052da08f12
100644
--- a/src/mips/code-stubs-mips.cc
+++ b/src/mips/code-stubs-mips.cc
@@ -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: src/mips/lithium-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc
b/src/mips/lithium-codegen-mips.cc
index
004548997b3241f52374378a4a7e6b5f884e0f66..b52d7e9d069d0abeca3f72dd54acbb39c2287274
100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -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: src/mips64/code-stubs-mips64.cc
diff --git a/src/mips64/code-stubs-mips64.cc
b/src/mips64/code-stubs-mips64.cc
index
892ae2a39a00dd057880127fda8782aa0e32c96a..49df8eabce029b72b37d2c1577dd0f54d4c9819e
100644
--- a/src/mips64/code-stubs-mips64.cc
+++ b/src/mips64/code-stubs-mips64.cc
@@ -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: src/mips64/lithium-codegen-mips64.cc
diff --git a/src/mips64/lithium-codegen-mips64.cc
b/src/mips64/lithium-codegen-mips64.cc
index
9df5ccaa9992e213367558a885ca42f5ba07ee92..cf8a1aa71513d281e79b21ea788c57ee462ad418
100644
--- a/src/mips64/lithium-codegen-mips64.cc
+++ b/src/mips64/lithium-codegen-mips64.cc
@@ -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.
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.