SimpleSlice now calls [[Get]] before [[Has]] when generating copy
authoradamk@chromium.org <adamk@chromium.org>
Fri, 24 Oct 2014 18:07:59 +0000 (18:07 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Fri, 24 Oct 2014 18:08:13 +0000 (18:08 +0000)
commitc9ea8d651235a91587842143eac28d1fcc8d9a23
tree25a3e36cbbea4823654fea180d66fb806b8b4667
parent02d37b8f10a7ef3a4caf6fd18e9e7b29ef61568d
SimpleSlice now calls [[Get]] before [[Has]] when generating copy

SparseSlice does not need this (non-optimal) reordering since its
callers guarantee that [[Get]] has no side effects on the passed-in array.

BUG=v8:3643
LOG=n
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/674003002

Cr-Commit-Position: refs/heads/master@{#24884}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24884 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js
test/mjsunit/regress/regress-3643.js [new file with mode: 0644]