Bug 894813 - IonMonkey: Eliminate ambiguity in pow calls in a CLOSED TREE

This commit is contained in:
Dan Gohman 2013-08-16 14:40:50 -07:00
Родитель 3b6db963bf
Коммит f226d9240f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -7367,14 +7367,14 @@ CodeGenerator::visitDoubleRangeAssert(LDoubleRangeAssert *ins)
if (!r->isInfinite()) { if (!r->isInfinite()) {
// Check the bounds implied by the maximum exponent. // Check the bounds implied by the maximum exponent.
Label exponentLoOk; Label exponentLoOk;
masm.loadConstantDouble(pow(2, r->exponent() + 1), temp); masm.loadConstantDouble(pow(2.0, r->exponent() + 1), temp);
masm.branchDouble(Assembler::DoubleUnordered, input, input, &exponentLoOk); masm.branchDouble(Assembler::DoubleUnordered, input, input, &exponentLoOk);
masm.branchDouble(Assembler::DoubleLessThanOrEqual, input, temp, &exponentLoOk); masm.branchDouble(Assembler::DoubleLessThanOrEqual, input, temp, &exponentLoOk);
masm.breakpoint(); masm.breakpoint();
masm.bind(&exponentLoOk); masm.bind(&exponentLoOk);
Label exponentHiOk; Label exponentHiOk;
masm.loadConstantDouble(-pow(2, r->exponent() + 1), temp); masm.loadConstantDouble(-pow(2.0, r->exponent() + 1), temp);
masm.branchDouble(Assembler::DoubleUnordered, input, input, &exponentHiOk); masm.branchDouble(Assembler::DoubleUnordered, input, input, &exponentHiOk);
masm.branchDouble(Assembler::DoubleGreaterThanOrEqual, input, temp, &exponentHiOk); masm.branchDouble(Assembler::DoubleGreaterThanOrEqual, input, temp, &exponentHiOk);
masm.breakpoint(); masm.breakpoint();