[Webkit-unassigned] [Bug 156072] New: [JSC] Add truncate operation (rounding to zero)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 31 11:06:38 PDT 2016


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

            Bug ID: 156072
           Summary: [JSC] Add truncate operation (rounding to zero)
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Add Math.trunc's TruncIntrinsic and DFG ArithTrunc.
And use @trunc in toInteger. (This is the same in JSValue::toInteger)
Currently, even if we know the given value is Int32, due to @abs and negation, we always emit some code.
But if we add it, we can convert them to Identity in DFG Fixup phase.

-- 
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/20160331/e484509a/attachment.html>


More information about the webkit-unassigned mailing list