Ensure reducing the length of an array doesn't make it go holey.
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 Nov 2012 10:24:56 +0000 (10:24 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 2 Nov 2012 10:24:56 +0000 (10:24 +0000)
commit14abf05bd580316c744fdf6df61cecfd4b906ac6
tree86910fd6fa3da8e1b5002fb83219b4bfa99593ac
parenta85fd03caa1e4021ec1486298cc4917d7c123de8
Ensure reducing the length of an array doesn't make it go holey.

Also only transition and/or change anything to the backing store if we are
actually going to delete anything.

BUG=

Review URL: https://chromiumcodereview.appspot.com/11358011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12840 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/elements.cc
test/mjsunit/elements-length-no-holey.js [new file with mode: 0644]
test/mjsunit/regress/regress-delete-empty-double.js [new file with mode: 0644]