• 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...
ast-expression-rewriter.cc Loading commit data...
ast-expression-rewriter.h Loading commit data...
ast-function-literal-id-reindexer.cc Loading commit data...
ast-function-literal-id-reindexer.h Loading commit data...
ast-numbering.cc Loading commit data...
ast-numbering.h Loading commit data...
ast-traversal-visitor.h Loading commit data...
ast-type-bounds.h Loading commit data...
ast-types.cc Loading commit data...
ast-types.h Loading commit data...
ast-value-factory.cc Loading commit data...
ast-value-factory.h Loading commit data...
ast.cc Loading commit data...
ast.h Loading commit data...
compile-time-value.cc Loading commit data...
compile-time-value.h Loading commit data...
context-slot-cache.cc Loading commit data...
context-slot-cache.h Loading commit data...
modules.cc Loading commit data...
modules.h Loading commit data...
prettyprinter.cc Loading commit data...
prettyprinter.h Loading commit data...
scopes.cc Loading commit data...
scopes.h Loading commit data...
variables.cc Loading commit data...
variables.h Loading commit data...