Skip to content
  • mjs's avatar
    - completed Darin's mostly-fix for 3037795 - Resource use · 1a9f113f
    mjs authored
    	increases when accessing very high index value in array
    
    	The two missing pieces were handling sparse properties when
    	shrinking the array, and when sorting. Thse are now both taken
    	care of.
    
            * kjs/array_instance.h:
            * kjs/array_object.cpp:
            (ArrayInstanceImp::put):
            (ArrayInstanceImp::deleteProperty):
            (ArrayInstanceImp::resizeStorage):
            (ArrayInstanceImp::setLength):
            (ArrayInstanceImp::sort):
            (ArrayInstanceImp::pushUndefinedObjectsToEnd):
            * kjs/identifier.h:
            * kjs/object.h:
            * kjs/property_map.cpp:
            * kjs/property_map.h:
            * kjs/reference_list.cpp:
            (ReferenceList::append):
            (ReferenceList::length):
            * kjs/reference_list.h:
            * kjs/ustring.cpp:
            (UString::toUInt32):
            * kjs/ustring.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    1a9f113f