Bug 139679 - 0<=NaN return TRUE if disabling JIT
Summary: 0<=NaN return TRUE if disabling JIT
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-12-16 06:49 PST by Mark Wang
Modified: 2015-12-10 01:13 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wang 2014-12-16 06:49:34 PST
If --enable-jit=yes, '0<=NaN' returns false.
If --enable-jit=no, '0<=NaN' returns true. it is not corrected.
Comment 1 Radar WebKit Bug Importer 2014-12-17 10:53:17 PST
<rdar://problem/19280919>
Comment 2 Geoffrey Garen 2014-12-17 16:41:17 PST
Can you be more specific? 

I tried this:

[redacted]> JSC_useJIT=0 DYLD_FRAMEWORK_PATH=./Contents/Frameworks/ ./Contents/Resources/jsc
>>> 0<=NaN
false
Comment 3 Mark Wang 2014-12-17 17:38:37 PST
I am using WebKitGTK2.0.1 which didn't change the JavascriptCore. 

My test script is:
<script>
    0 <= NaN?console.log("TRUE"):console.log("FALSE");
</script>

OS: Linux.
Result:
If --enable-jit=yes, "0 <= NaN" always is FALSE no matter if JIT is enabled by ENV


If --enable-jit=no, "0 <= NaN" always is TRUE.

So, JIT must be disabled in the build configuration in order to reproduce this issue.
Comment 4 Mark Wang 2014-12-17 17:43:33 PST
If disabling the JIT in the build configuration, the issue can reproduced. So It is reopened.

JSC_useJIT=0 can't reproduce this issue if --enable-jit=yes in the build configuration.
Comment 5 Mark Wang 2015-12-10 01:13:33 PST
In only a few versions of offlineasm/cloop.rb, "isnan" was used (not "std::isnan").

This issue can't be reproduced if using "std::isnan", so it is set to be 'WONTFIX'