Bug 1564125 - Part 1: Don't call into the runtime for negative zero in LDoubleToString. r=nbp

The string representation of negative zero is equal to the one for positive zero, so there's no
need to call into the runtime for that case.

Differential Revision: https://phabricator.services.mozilla.com/D37259

--HG--
extra : moz-landing-system : lando
This commit is contained in:
André Bargull 2019-07-09 13:11:05 +00:00
Родитель d8ea37c7c3
Коммит 4c9d7b096d
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1569,7 +1569,7 @@ void CodeGenerator::visitDoubleToString(LDoubleToString* lir) {
lir, ArgList(input), StoreRegisterTo(output));
// Try double to integer conversion and run integer to string code.
masm.convertDoubleToInt32(input, temp, ool->entry(), true);
masm.convertDoubleToInt32(input, temp, ool->entry(), false);
emitIntToString(temp, output, ool->entry());
masm.bind(ool->rejoin());