• weinig@apple.com's avatar
    2009-01-28 Sam Weinig <sam@webkit.org> · 79513969
    weinig@apple.com authored
            Reviewed by Geoff Garen.
    
            Initial patch by Mark Rowe.
    
            <rdar://problem/6519356>
            REGRESSION (r36006): "out of memory" alert running dromaeo on Windows
    
            Report the cost of the ArrayStorage vector more accurately/often.
    
            * runtime/JSArray.cpp:
            (JSC::JSArray::JSArray): Report the extra cost even for a filled array
            because JSString using the single character optimization and immediates
            wont increase the cost themselves. 
            (JSC::JSArray::putSlowCase): Update the cost when increasing the size of
            the array.
            (JSC::JSArray::increaseVectorLength): Ditto.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    79513969
JSArray.cpp 34.2 KB