<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Undefined Behavior in JSValue cast from NaN"
href="https://bugs.webkit.org/show_bug.cgi?id=160322#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Undefined Behavior in JSValue cast from NaN"
href="https://bugs.webkit.org/show_bug.cgi?id=160322">bug 160322</a>
from <span class="vcard"><a class="email" href="mailto:jbedard@apple.com" title="Jonathan Bedard <jbedard@apple.com>"> <span class="fn">Jonathan Bedard</span></a>
</span></b>
<pre>Investigation of the assembly along with a brief bit of profiling confirms that some versions of clang do not fold away the cast to int check, even though PNaN is a constant. This may be because PNaN must first be passed through the bitwise_cast function.
In any case, I do think that the changes are worth making both for performance and ambiguity reasons.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>