Math.pow on iOS does not support denormal numbers.
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2012 00:29:27 +0000 (00:29 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2012 00:29:27 +0000 (00:29 +0000)
commitb8dbe89870467d4452b1f6ea94ab72d2bb6ec4d7
treeb7a95496584a70b0ad3fe3e38539cf372f50394d
parentc60cae3585f641b3ce30eb488032a6a8842d0109
Math.pow on iOS does not support denormal numbers.
https://bugs.webkit.org/show_bug.cgi?id=88592

Reviewed by Filip Pizlo.

Import an implementation from fdlibm, detect cases where it is safe to use the system
implementation & where we should fall back to fdlibm.

* runtime/MathObject.cpp:
(JSC::isDenormal):
(JSC::isEdgeCase):
(JSC::mathPow):
    - On iOS, detect cases where denormal support may be required & use fdlibm in these cases.
(JSC::mathProtoFuncPow):
    - Changed to use mathPow.
(JSC::fdlibmScalbn):
(JSC::fdlibmPow):
    - These functions imported from fdlibm; original style retained to ease future merging.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@119775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/MathObject.cpp