Do not compact weak fixed array when re-allocating new backing store.
authoryangguo <yangguo@chromium.org>
Wed, 19 Aug 2015 14:29:35 +0000 (07:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Aug 2015 14:29:50 +0000 (14:29 +0000)
commit147299b9fdda49eaf29998bb0157bc01337425c3
treed6f489b301d3d614211f7825aa0a32ef4f3960e7
parentfe432e1ace48c345c659c0bcb6a84798bca0b15e
Do not compact weak fixed array when re-allocating new backing store.

JSObject::UnregisterPrototypeUser relies on the index of the weak
fixed array entry not to change.

See commit 1e65e2018.

There is no bug currently, because we would only re-allocate if there is no empty slot left. In which case there is no actual compaction going on during re-allocation.

R=jkummerow@chromium.org, mvstanton@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30251}
src/objects.cc