• jochen@chromium.org's avatar
    Avoid duplication of a hidden & inherited prototype's properties. · e3fa6d67
    jochen@chromium.org authored
    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
    e3fa6d67
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...