[Webkit-unassigned] [Bug 65146] New: DFG non-speculative JIT emits obviously inefficient code for arithmetic where one operand is a constant

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 25 16:01:02 PDT 2011


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

           Summary: DFG non-speculative JIT emits obviously inefficient
                    code for arithmetic where one operand is a constant
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fpizlo at apple.com


The DFG non-speculative JIT uses C function calls as non-integer or overflow-handling slow-paths for arithmetic against constants.  This is obviously inefficient, since the code will almost always see a number in the non-constant operand, and emitting int-to-double conversion (or double unboxing) followed by double arithmetic is both faster and likely involves less code than a C call.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list