• jkummerow's avatar
    Refactor Maps' code_cache · 31882103
    jkummerow authored
    Most maps have a small code cache (often only one entry), so this patch
    optimizes memory consumption of such cases by using plain FixedArrays,
    only switching to CodeCacheHashTables when the number of cached entries
    gets so large that linear-scan lookups get too slow.
    
    On loading inbox.google.com, this gets the aggregate size of all maps'
    code caches (there are about 13,600 of them) from 4300 KB to 970 KB.
    
    Review-Url: https://codereview.chromium.org/2021373002
    Cr-Commit-Position: refs/heads/master@{#36681}
    31882103
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
fuzzer 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...
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...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.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...