• 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
..
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-error.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-interpreter.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-liveedit.cc Loading commit data...
runtime-maths.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...