Keep new arrays allocated with 'new Array(N)' in fast mode
authordanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Jul 2014 12:08:23 +0000 (12:08 +0000)
committerdanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Jul 2014 12:08:23 +0000 (12:08 +0000)
commitac89b17813bb73292064d8fbb2ac7dc90eef26dc
tree6d9be7f25603262de479cc388263f4e28b4135f5
parent37df96f9b176afc0e0079c48c2eb5b4c41b74d7f
Keep new arrays allocated with 'new Array(N)' in fast mode

Also explicit length setting with a.length = N should remain in fast mode.

R=verwaest@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22595 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
16 files changed:
src/elements.cc
src/objects.cc
src/runtime.cc
src/runtime.h
test/fuzz-natives/base.js
test/mjsunit/allocation-site-info.js
test/mjsunit/apply.js
test/mjsunit/array-constructor-feedback.js
test/mjsunit/array-feedback.js
test/mjsunit/array-splice.js
test/mjsunit/array-unshift.js
test/mjsunit/elements-kind.js
test/mjsunit/es7/object-observe.js
test/mjsunit/polymorph-arrays.js
test/mjsunit/regress/regress-2790.js
tools/generate-runtime-tests.py