• Leszek Swirski's avatar
    [ast] Cache allocated AstConsString · 7fa19160
    Leszek Swirski authored
    Allow caching the result of allocating AstConsStrings, to allow
    sharing of inferred names between functions.
    
    This is a partial revert of https://crrev.com/c/2020953, with
    the observation that *some* AstConsStrings are always flattened,
    while others are only ever used as ConsStrings, so we want to
    allow the allocation to be lazy while still caching the result.
    
    As a drive-by, cleanup the old AstConsString linked list fields.
    
    Bug: chromium:1011762
    Bug: chromium:1048082
    Change-Id: Icc14342eb3f6f97359596b42b2c296cbc49fd791
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2042093
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66168}
    7fa19160
Name
Last commit
Last update
..
OWNERS Loading commit data...
expression-scope.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
keywords-gen.h Loading commit data...
keywords.txt Loading commit data...
literal-buffer.cc Loading commit data...
literal-buffer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pending-compilation-error-handler.cc Loading commit data...
pending-compilation-error-handler.h Loading commit data...
preparse-data-impl.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser-logger.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner-inl.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...