Commit a498a268 authored by fpizlo@apple.com's avatar fpizlo@apple.com

FTL shouldn't have a doubleToUInt32 path

https://bugs.webkit.org/show_bug.cgi?id=125360

Reviewed by Mark Hahnenberg.
        
This code existed because I incorrectly thought it was necessary. It's now basically
dead.

* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::compilePutByVal):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160238 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 079910ef
2013-12-06 Filip Pizlo <fpizlo@apple.com>
FTL shouldn't have a doubleToUInt32 path
https://bugs.webkit.org/show_bug.cgi?id=125360
Reviewed by Mark Hahnenberg.
This code existed because I incorrectly thought it was necessary. It's now basically
dead.
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::compilePutByVal):
2013-12-06 Laszlo Vidacs <lac@inf.u-szeged.hu>
Define SHA1 hash size in SHA1.h and use it at various places.
......
......@@ -1705,10 +1705,8 @@ private:
m_out.appendTo(continuation, lastNext);
intValue = m_out.phi(m_out.int32, intValues);
} else if (isSigned(type))
} else
intValue = doubleToInt32(doubleValue);
else
intValue = doubleToUInt32(doubleValue);
break;
}
......@@ -3018,14 +3016,6 @@ private:
return doubleToInt32(doubleValue, -limit, limit);
}
LValue doubleToUInt32(LValue doubleValue)
{
if (Output::hasSensibleDoubleToInt())
return sensibleDoubleToInt32(doubleValue);
return doubleToInt32(doubleValue, 0, pow(2, 32) - 1, false);
}
LValue sensibleDoubleToInt32(LValue doubleValue)
{
LBasicBlock slowPath = FTL_NEW_BLOCK(m_out, ("sensible doubleToInt32 slow path"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment