[Webkit-unassigned] [Bug 138119] New: Simplified some JSObject methods for converting arrays to ArrayStorage shape

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 27 19:41:51 PDT 2014


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

            Bug ID: 138119
           Summary: Simplified some JSObject methods for converting arrays
                    to ArrayStorage shape
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly 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

Currently, for each Undecided, Int32, Double, and Contiguous array shapes, there are 3 JSObject methods to convert them to ArrayStorage shape:
    ArrayStorage* convert<shape>ToArrayStorage(VM&, NonPropertyTransition, unsigned neededLength);
    ArrayStorage* convert<shape>ToArrayStorage(VM&, NonPropertyTransition);
    ArrayStorage* convert<shape>ToArrayStorage(VM&);

However, the neededLength that is passed is always m_butterfly->vectorLength().  Hence, the method that takes a neededLength is really not needed.

-- 
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/20141028/4ed00f0a/attachment-0002.html>


More information about the webkit-unassigned mailing list