[Webkit-unassigned] [Bug 171057] New: [JSC] Use JSFixedArray directly when using call_varargs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 20 08:42:27 PDT 2017


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

            Bug ID: 171057
           Summary: [JSC] Use JSFixedArray directly when using
                    call_varargs
           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

Currently, when executing the following code,

var array = [0, 1, 2];
Math.max(...array);

The bytecode becomes like this.

[  49] spread            loc9, loc10
[  52] new_array_with_spread loc7, loc9, 1, BitVector:0:1
[  57] mov               loc9, loc8
[  60] call_varargs      loc5, loc5, loc8, loc7, -11, 0    predicting None

But (52)'s array is unnecessary if argument is only consisted by one spread.

-- 
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/20170420/2ef6d313/attachment.html>


More information about the webkit-unassigned mailing list