• mstarzinger's avatar
    [turbofan] Thread through object boilerplate length. · f7934b64
    mstarzinger authored
    This adds the number of properties to be expected within the boilerplate
    object for object literals to the TurboFan IR. The reason is that this
    length can no longer be easily inferred from just the constants array.
    The length is potentially non-zero for empty object literals and might
    also diverge in the presence of constant functions or duplicate property
    names.
    
    For future safety and for symmetry reasons, the same change was applied
    to array literals as well, even though inferring the length from the
    constant elements is still possible there.
    
    R=verwaest@chromium.org
    BUG=chromium:593008
    LOG=n
    
    Review URL: https://codereview.chromium.org/1772803003
    
    Cr-Commit-Position: refs/heads/master@{#34594}
    f7934b64
js-operator.h 17 KB