• Michael Starzinger's avatar
    [asm.js] Fix break depth calculation for named blocks. · 080fa871
    Michael Starzinger authored
    The target of a 'break' statement without a provided label must be a
    regular block belonging to a surrounding loop or switch statement, named
    blocks (i.e. the one that just define a label) on the other hand must be
    targeted specifically with the provided label (and not implicitly). This
    fixes the behavior by introducing a dedicated {BlockKind::kNamed} for
    this purpose.
    
    R=clemensh@chromium.org
    TEST=mjsunit/regress/regress-9022
    BUG=v8:9022
    
    Change-Id: I94c3d5b1196ed94b8b1b31f6eb3b68070cf324e8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1538126
    Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60445}
    080fa871
asm-parser.cc 86.4 KB