mirrored from https://chromium.googlesource.com/v8/v8.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplication of a hidden & inherited prototype's properties.
In Runtime_GetLocalPropertyNames(), the hidden prototypes of an object are also consulted when deriving the property name set. However, if given a function object and its template was inherited from the template of one of its hidden prototypes, that hidden prototype's property accessors will be present on the object already. Unwanted duplicates will therefore appear. Hence, go through the property names that the hidden prototypes contribute and remove any already occurring ones. Assumed to be a rare constellation, so the cost of this extra pass is considered acceptable. LOG=N R=dcarney@chromium.org, jochen@chromium.org, rossberg@chromium.org BUG=269562 Review URL: https://codereview.chromium.org/116533003 Patch from Sigbjorn Finne <sof@opera.com>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18448 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
- Loading branch information
jochen@chromium.org
committed
Jan 3, 2014
1 parent
6a0a9a8
commit e3fa6d6
Showing
2 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters