Also allocate small typed arrays on heap when initialized from an array-like
authorjochen <jochen@chromium.org>
Wed, 3 Jun 2015 07:41:28 +0000 (00:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 07:41:38 +0000 (07:41 +0000)
commit1d1df96d2349a2e2089c00bbf0190318b0a84579
tree0cc335e5190fca95520a1fec9ff6f76b4b88fbb5
parent251816ab5a2719c5da635107556e1a9a6668b0f7
Also allocate small typed arrays on heap when initialized from an array-like

This means something like new Float32Array([23, 42]) will be allocated on heap.

BUG=v8:3996
R=bmeurer@chromium.org,mstarzinger@chromium.org
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#28780}
12 files changed:
src/factory.cc
src/factory.h
src/heap/heap.cc
src/heap/heap.h
src/hydrogen.cc
src/hydrogen.h
src/layout-descriptor-inl.h
src/runtime/runtime-typedarray.cc
src/runtime/runtime.h
src/typedarray.js
test/cctest/test-heap.cc
test/cctest/test-typedarrays.cc