• Victor Gomes's avatar
    [maglev] Support ForIn · 2d5edc66
    Victor Gomes authored
    It introduces GetSecondReturnedValue node, which must be added
    immediately after a node that calls a builtin that expects 2
    returned values.
    
    It simply binds kReturnRegister1 to a value node. Since the previous
    node must have been a builtin call, kReturnRegister1 is free in
    the register allocator. No gap moves will be emitted between these
    two nodes.
    
    Bug: v8:7700
    Change-Id: Iddd81ef534a6397bad5682fa1430a94d2075b746
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3810183
    Commit-Queue: Victor Gomes <victorgomes@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82204}
    2d5edc66
maglev-graph-builder.h 35.5 KB