• mstarzinger's avatar
    Fix arrow functions requiring context without slots. · 68beef53
    mstarzinger authored
    This fixes a corner-case where arrow functions that require a context
    allocate none, because there are no additional slots allocated. Note
    that this didn't happen with true function scopes because they always
    had at least the receiver slot.
    
    The outcome was a context chain that no longer was in sync with the
    scope chain, hence context slot loads were bogus. This is observable
    using the DYNAMIC_LOCAL optimization in all compilers.
    
    R=rossberg@chromium.org,wingo@igalia.com
    TEST=mjsunit/harmony/regress/regress-4160
    BUG=v8:4160
    LOG=N
    
    Review URL: https://codereview.chromium.org/1146063006
    
    Cr-Commit-Position: refs/heads/master@{#28788}
    68beef53
Name
Last commit
Last update
..
regress-173361.js Loading commit data...
regress-2219.js Loading commit data...
regress-2225.js Loading commit data...
regress-343928.js Loading commit data...
regress-3501.js Loading commit data...
regress-3750.js Loading commit data...
regress-4056.js Loading commit data...
regress-405844.js Loading commit data...
regress-4160.js Loading commit data...
regress-455141.js Loading commit data...
regress-crbug-347528.js Loading commit data...
regress-crbug-448730.js Loading commit data...
regress-crbug-451770.js Loading commit data...
regress-crbug-461520.js Loading commit data...
regress-crbug-465671-null.js Loading commit data...
regress-crbug-465671.js Loading commit data...
regress-lookup-transition.js Loading commit data...
regress-observe-empty-double-array.js Loading commit data...
regress-typedarray-out-of-bounds.js Loading commit data...