• bmeurer's avatar
    [turbofan] Also constant-fold Object.getPrototypeOf if possible. · 359b5f93
    bmeurer authored
    We already have an optimization to constant-fold access to an object's
    prototype via the special __proto__ accessor (specified in appendix B).
    We can use the same optimization to also constant-fold accesses to an
    object's prototype via the official Object.getPrototypeOf function.
    
    Also add the optimization for Reflect.getPrototypeOf, which is
    equivalent for object inputs.
    
    This is commonly used by Babel to implement various new language
    features, for example subclassing and certain property lookups.
    
    R=yangguo@chromium.org
    BUG=v8:6292
    
    Review-Url: https://codereview.chromium.org/2841463002
    Cr-Commit-Position: refs/heads/master@{#44788}
    359b5f93
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...