[Webkit-unassigned] [Bug 16777] eliminate KJS::NaN and KJS::Inf

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 8 09:51:28 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16777





------- Comment #3 from darin at apple.com  2008-01-08 09:51 PDT -------
(In reply to comment #2)
> Is there a way to replace the value of KJS::NaN and KJS::Inf with
> numeric_limits<double>::quiet_NaN() and numeric_limits<double>::infinity()
> (respectively) without creating a static initializer?

I don't think so.

But that's a problem we have already solved for platforms that define NAN and
INFINITY, which takes care of OS X. So I'm not really concerned about it. This
bug is more about cleaning things up so we don't have our own NaN and infinity
constants at all, which seems unnecessary since the standard library already
has them.

My guess is that almost all call sites could be changed as in this patch and
then we can figure out why the one call site is so hot. Once we understand that
we might be able to come up with an even faster way to do it -- for example, we
could store the value in the ExecState structure.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list