[Webkit-unassigned] [Bug 239758] New: Wrong JIT compilation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 00:16:06 PDT 2022


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

            Bug ID: 239758
           Summary: Wrong JIT compilation
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zhunkibatu at gmail.com

Created attachment 458335

  --> https://bugs.webkit.org/attachment.cgi?id=458335&action=review

the minimal poc

The following PoC outputs differently before/after JIT compilation.


function opt() {
        var b = false;
        var c = -b;
        try {
                throw "";
        } catch(e) {
        }
        return c;
}

let before = opt();
print(1/before); //-Infinity

for(var i=0;i<10000;i++){
        opt();
}

let afterJIT = opt();
print(1/afterJIT); //Infinity

-- 
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/20220426/f106cb79/attachment-0001.htm>


More information about the webkit-unassigned mailing list