Don't use SmartSlice just because the receiver is an array.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 6 Jun 2011 13:28:44 +0000 (13:28 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 6 Jun 2011 13:28:44 +0000 (13:28 +0000)
commit0c1702b199e4eeaab07706528249d74a0bd31ea8
treea55afa63dfd58a15c9da580eca3b70abc2907bf4
parentc0a0c82b70f98e074988382735ae3ab288359ead
Don't use SmartSlice just because the receiver is an array.

Only do so if the estimated number of elements is low compared to the
end position for the slice. This is similar to other heuristics used
for array operations that use the %GetElementKeys runtime function.

R=erik.corry@gmail.com

Review URL: http://codereview.chromium.org/7111032

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8184 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array.js