• bmeurer's avatar
    [es2015] Precompute the descriptive string for symbols. · e8757382
    bmeurer authored
    Previously the String constructor and the Symbol.prototype.toString
    methods had to compute the descriptive string for a Symbol on the fly,
    which can produce a lot of garbage when this happens a lot, i.e. when
    the String representation of a Symbol is used often. Now instead of
    doing this on-demand we can just do it upfront when creating the Symbol.
    
    That way we also ensure that we won't throw an exception when accessing
    the descriptive string of a Symbol, due to potential String length
    overflow, but have the exception during Symbol creation upfront, which
    is a lot less surprising behavior.
    
    BUG=v8:6278,v8:6344,v8:6350
    TBR=mlippautz@chromium.org
    R=ishell@chromium.org
    
    Review-Url: https://codereview.chromium.org/2900703002
    Cr-Commit-Position: refs/heads/master@{#45479}
    e8757382
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...