Bug 264034 - Host function isPureNaN is inlined into true in DFGByteCodeParser.cpp handleIntrinsicCall.
Summary: Host function isPureNaN is inlined into true in DFGByteCodeParser.cpp handleI...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-01 04:29 PDT by EntryHi
Modified: 2024-02-23 22:46 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EntryHi 2023-11-01 04:29:40 PDT
===================test.js==================
for (let v0 = 0; v0 < 100; v0++) {
  const v2 = this.isPureNaN(v0);
  print(v2)
}
============================================


Run args: ./jsc -f test.js --useConcurrentJIT=0  --jitPolicyScale=0.01


JSC prints `true` in DFG. The correct result should be `false`.
Comment 1 Radar WebKit Bug Importer 2023-11-08 03:30:14 PST
<rdar://problem/118109241>
Comment 2 Sosuke Suzuki 2024-02-23 22:46:14 PST
Pull request: https://github.com/WebKit/WebKit/pull/25053