Revert of [mips] Fix typos introduced by previous commit. (patchset #1 id:1 of https://codereview.chromium.org/814203002/)
Reason for revert: Needed in order to revert https://codereview.chromium.org/798413003 Original issue's description: > [mips] Fix typos introduced by previous commit. > > R=svenpanne@chromium.org > > Committed: https://crrev.com/0c96a8b19730e79bc9cae08f3d86755c7b7c962e > Cr-Commit-Position: refs/heads/master@{#25899} TBR=svenpanne@chromium.org,bmeurer@chromium.org NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/822523002 Cr-Commit-Position: refs/heads/master@{#25911}
This commit is contained in:
parent
87e4bba31e
commit
aa4b9393bf
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user