DescriptionFix Map::AsArray to properly iterate over the backing store
Old code failed to walk over deleted elements, instead treating
deleted elements as "undefined" in the output array.
This is the Map equivalent of commit 2d9bfe9ad5.
Also micro-optimized the loops to avoid an extra call to KeyAt()
and used a direct hole comparison instead of calling IsTheHole().
R=cbruni@chromium.org
BUG=v8:4946
LOG=y
Committed: https://crrev.com/b767329b3704632229c88d9c6ea5b0dab28d4e37
Cr-Commit-Position: refs/heads/master@{#36149}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Micro-optimized #
Messages
Total messages: 12 (6 generated)
|