WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
277895
[JSC] Atomics.and returns incorrect number type in JIT compiler
https://bugs.webkit.org/show_bug.cgi?id=277895
Summary
[JSC] Atomics.and returns incorrect number type in JIT compiler
GuY
Reported
2024-08-09 23:24:00 PDT
``` function opt() { const arr = new Int16Array([-1]); print(this.Atomics.and(arr, 0,0)); } for(let i=0;i<10;i++) opt(); ``` actual output: -1 -1 -1 -1 -1 -1 -1 65535 65535 65535 expected behavior: an Int16 number should be returned, 65535 is out of range. run args: cmake-build-debug/bin/jsc test.js --useConcurrentJIT=0 --jitPolicyScale=0.001 tested on the latest webkit git main branch: 08eaf750b8abe612c38d277d82d2eae71288acd2 The tested platform is x86_64 fedora linux system.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-08-16 23:24:11 PDT
<
rdar://problem/134115829
>
Keith Miller
Comment 2
2024-08-19 12:15:36 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/32404
EWS
Comment 3
2024-08-19 18:15:43 PDT
Committed
282476@main
(67c8ea6bd1f0): <
https://commits.webkit.org/282476@main
> Reviewed commits have been landed. Closing PR #32404 and removing active labels.
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