• Igor Sheludko's avatar
    [parser] Improve propagation of SharedFunctionInfo::has_shared_name(). · 328afeeb
    Igor Sheludko authored
    The initial implementation did not work in certain cases.
    For example, in the following case 'f' didn't have a shared name while
    it should have had an empty shared name:
      var f = (function() { return function() { return 42; } }();
    
    The new implementation ensures that all anonymous functions have empty
    shared name and if any of them happen to be an object literal property
    value or an accessor function or a concise method then such a function
    is marked as having no shared name.
    
    Bug: v8:6459
    Change-Id: I0f936afce0c152d91b2b41c1dc475a5ed841eca0
    Reviewed-on: https://chromium-review.googlesource.com/538666Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Commit-Queue: Igor Sheludko <ishell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#46026}
    328afeeb
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...