• bmeurer's avatar
    [cleanup] Remove instanceof cache. · f850b32d
    bmeurer authored
    The instanceof cache was initially introduced to speed up
    
      x instanceof y
    
    where y is always the same constructor and x is always an object with
    the same map. With the introduction of ES2015's @@hasInstance and the
    Function.prototype[Symbol.hasInstance] handler (which calls into
    OrdinaryHasInstance), this already became quite useless. It doesn't seem
    to provide any real value (not sure it ever did for real), but it's
    getting in the way of some useful refactorings (i.e. sharing logic
    between OrdinaryHasInstance and Object.prototype.isPrototypeOf for
    example).
    
    So this CL completely removes the leftover bits of the instanceof cache,
    including the GC and SetPrototype logic.
    
    BUG=v8:6479,v8:6474
    R=jgruber@chromium.org
    TBR=ulan@chromium.org
    
    Review-Url: https://codereview.chromium.org/2932263002
    Cr-Commit-Position: refs/heads/master@{#45835}
    f850b32d
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm 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...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...