Make ElementsAccessors more tolerant of varying backing store types
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Nov 2012 08:41:45 +0000 (08:41 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 28 Nov 2012 08:41:45 +0000 (08:41 +0000)
commit09b1574baa39dbc98c0d384895b131dfd3b23ee5
tree517103027d6f37b86957dc4964b46f97a42cc553
parente4be39edeffb21a79d5512fbff477d800815820e
Make ElementsAccessors more tolerant of varying backing store types

This avoids bogus calls to Fixed*Array::cast() when FastElements-backed objects are empty (and thus backed by empty_fixed_array).

Review URL: https://chromiumcodereview.appspot.com/11299190
Patch from Adam Klein <adamk@chromium.org>.

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