WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
257949
JSC computes incorrectly in DFG
https://bugs.webkit.org/show_bug.cgi?id=257949
Summary
JSC computes incorrectly in DFG
ChristineWillice
Reported
2023-06-12 00:09:04 PDT
``````````````test.js````````````````` function opt(v) { return ((-1 >>> v) + -0.2) | 0 } for (let i = 0; i < 100; i++) { opt(0) } print(opt(32)) `````````````````````````````````````` This bug is in latest version JSC. Run args: ./jsc test.js --useConcurrentJIT=0 --jitPolicyScale=0 The corrent result is -2, but JSC prints -1.
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2023-06-12 13:07:16 PDT
Reproduces on Apple Silicon macOS, too.
Radar WebKit Bug Importer
Comment 2
2023-06-12 13:07:27 PDT
<
rdar://problem/110661900
>
Justin Michaud
Comment 3
2023-06-26 18:54:22 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/15311
EWS
Comment 4
2023-07-06 20:50:07 PDT
Committed
265833@main
(2f7262436c99): <
https://commits.webkit.org/265833@main
> Reviewed commits have been landed. Closing PR #15311 and removing active labels.
WebKit Commit Bot
Comment 5
2023-07-10 12:13:27 PDT
Re-opened since this is blocked by
bug 259065
Carlos Alberto Lopez Perez
Comment 6
2023-07-11 06:39:17 PDT
BTW, this also caused crashes on the kraken benchmark (on GTK/WPE 64-bits builds). For example when running it with the run-benchmark tool like: Tools/Scripts/run-benchmark --plan kraken [...] Crash log:
http://sprunge.us/ZhSWj6
Yijia Huang
Comment 7
2024-03-19 10:17:00 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/26024
EWS
Comment 8
2024-03-25 07:34:18 PDT
Committed
276654@main
(f5b95a221c2e): <
https://commits.webkit.org/276654@main
> Reviewed commits have been landed. Closing PR #26024 and removing active labels.
WebKit Commit Bot
Comment 9
2024-03-27 13:04:14 PDT
Re-opened since this is blocked by
bug 271788
Yijia Huang
Comment 10
2024-04-05 14:31:12 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/26913
EWS
Comment 11
2024-04-13 03:56:46 PDT
Committed
277456@main
(6c214dfbb5a1): <
https://commits.webkit.org/277456@main
> Reviewed commits have been landed. Closing PR #26913 and removing active labels.
Yusuke Suzuki
Comment 12
2025-05-23 17:27:20 PDT
***
Bug 265272
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug