[Webkit-unassigned] [Bug 151997] New: DFG should reduce division of a constant by a constant.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 8 10:01:00 PST 2015


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

            Bug ID: 151997
           Summary: DFG should reduce division of a constant by a
                    constant.
    Classification: Unclassified
           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: mark.lam at apple.com

Running LayoutTests/svg/in-html/sizing/svg-inline.html produces a scenario where we see a division of a constant by another constant:

    (lldb) p leftOperand
    (JSC::SnippetOperand) $0 = {
      m_resultType = (m_type = '\x05')
      m_type = ConstInt32
      m_val = (int32Val = 600, doubleVal = 6.0841863318852727E-310, rawBits = 123145302311512)
    }
    (lldb) p rightOperand
    (JSC::SnippetOperand) $1 = {
      m_resultType = (m_type = '\x05')
      m_type = ConstInt32
      m_val = (int32Val = 100, doubleVal = 6.0841863318605694E-310, rawBits = 123145302311012)
    }

The DFG should have folded this into a constant int 6.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151208/82b8abff/attachment.html>


More information about the webkit-unassigned mailing list