Fasterify JSObject::UnregisterPrototypeUser
authorjkummerow <jkummerow@chromium.org>
Sat, 8 Aug 2015 22:56:15 +0000 (15:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 8 Aug 2015 22:56:31 +0000 (22:56 +0000)
commit1e65e201894791c3bf8473728021f0e548a0543b
treef66a72e7799e573a265eb6dd56a6fa6236ea08f5
parent6ea0d55dfb9306200b86e057ac74528321ca709b
Fasterify JSObject::UnregisterPrototypeUser

When a (prototype) map registers as a user of its own prototype, it now remembers the index in that prototype's registry where it is listed.
This remembered index is used on un-registration to find the right slot to clear without walking the entire registry.
Compaction of the registry must update all entries' remembered indices.

BUG=chromium:517778,chromium:517406
LOG=n
R=yangguo@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30079}
src/factory.cc
src/objects-inl.h
src/objects-printer.cc
src/objects.cc
src/objects.h
src/snapshot/serialize.cc
test/cctest/test-heap.cc