• Igor Sheludko's avatar
    [parser] Introduce SharedFunctionInfo::has_shared_name(). · 9a2c18f5
    Igor Sheludko authored
    Properly propagate the fact that the function has a statically known name from
    parser to SharedFunctionInfo objects. The empty string that has been set as
    name before this CL does not help to distinguish cases like:
      var o1 = { ''(){} };
      var o1 = { [foo()](){} };
    or
      var o2 = { get ''(){} };
      var o2 = { get [foo()](){} };
    
    This is a preliminary step for using different layouts for closure objects with
    and without computed names.
    
    TBR=bmeurer@chromium.org, marja@chromium.org
    
    Bug: v8:6459
    Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
    Change-Id: I10afa6f4bda7881c3714711a75f720f83c1d875d
    Reviewed-on: https://chromium-review.googlesource.com/522073
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#45744}
    9a2c18f5
Name
Last commit
Last update
..
OWNERS Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.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...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-data.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.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...