Reland "Lazily register prototype users..."
authorjkummerow <jkummerow@chromium.org>
Mon, 27 Apr 2015 12:59:55 +0000 (05:59 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 12:59:36 +0000 (12:59 +0000)
commitf6187fb3b52e518ccefd5de1bd1d4aca12bacba2
tree5b977647c81389725673389ab95fb020a4a4e65e
parent232b09825c2b1b7c2356f483a1b50c305863ad5f
Reland "Lazily register prototype users..."

...when handing out validity cells to handlers; because invalidating said cells is
the only time we'll need the user registrations.
Along the way, fix a corner case in WeakFixedArray, which can now be empty after
the recently introduced compaction support.

This reverts commit 968715c653b6337252a05a0224a7a93fab3b0866.

Original review: https://codereview.chromium.org/1104813004/

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

Cr-Commit-Position: refs/heads/master@{#28076}
src/objects.cc
src/objects.h
test/cctest/test-heap.cc
test/mjsunit/prototype-changes.js [new file with mode: 0644]