• 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...
array.js Loading commit data...
collection-iterator.js Loading commit data...
collection.js Loading commit data...
intl.js Loading commit data...
macros.py Loading commit data...
max-min.js Loading commit data...
messages.js Loading commit data...
prologue.js Loading commit data...
promise.js Loading commit data...
proxy.js Loading commit data...
spread.js Loading commit data...
string.js Loading commit data...
templates.js Loading commit data...
typedarray.js Loading commit data...
v8natives.js Loading commit data...
weak-collection.js Loading commit data...