[Webkit-unassigned] [Bug 277895] New: [JSC] Atomics.and returns incorrect number type in JIT compiler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 9 23:24:00 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=277895

            Bug ID: 277895
           Summary: [JSC] Atomics.and returns incorrect number type in JIT
                    compiler
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: q602706150 at gmail.com

```
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240810/69748e89/attachment.htm>


More information about the webkit-unassigned mailing list