Just visit young array buffers during scavenge. Additionally keep the views in new...
authorhpayer <hpayer@chromium.org>
Thu, 12 Feb 2015 10:00:26 +0000 (02:00 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Feb 2015 10:00:44 +0000 (10:00 +0000)
commitbd61a85fafd6461a40dc1e20252fd843f148e837
treec99c963a99031068155c6ecc498681fc6b9c5247
parent34c1db2fd724d886da9e732b234a05d4262fee89
Just visit young array buffers during scavenge. Additionally keep the views in new space in a separate global list and move them to the corresponding array buffers when they get promoted.

This reduces young generation garbage collections when many array buffers are allocated.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#26605}
src/factory.cc
src/heap/heap.cc
src/heap/heap.h
src/heap/mark-compact.cc
src/heap/objects-visiting.cc
src/heap/objects-visiting.h
src/objects.cc
src/runtime/runtime-typedarray.cc
src/serialize.cc
test/cctest/test-weaktypedarrays.cc