-
msaboff@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=98101 Reviewed by Filip Pizlo. Cleared new array entries when adding to end due to shifting contents to lower memory. Also checnaged the order of moving array contents and metadata in the shift left case to avoid clobbering the metadata with array contents. Optimized the to only make a memmove if the count is non-zero. * runtime/JSArray.cpp: (JSC::JSArray::unshiftCountSlowCase): (JSC::JSArray::unshiftCount): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2668b35e