• Clemens Backes's avatar
    [wasm] Make LiftoffRegList::ForRegs a constructor · ea96bd76
    Clemens Backes authored
    The 'ForRegs' method is not needed for clarity of the code, it's pretty
    clear what to construct a register list from. Hence turn the static
    {LiftoffRegList::ForRegs} method into a constructor. This makes the code
    more concise.
    
    Also, turn the for loop into a C++17 folding expression, which might
    generate better code because the loop will automatically be unrolled.
    
    R=thibaudm@chromium.org
    
    Bug: v8:12425
    Change-Id: Ic4446f23022db5f17420303d45b9c15fa5daff60
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3572041Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79815}
    ea96bd76
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
loong64 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
riscv64 Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
DEPS Loading commit data...
liftoff-assembler-defs.h Loading commit data...
liftoff-assembler.cc Loading commit data...
liftoff-assembler.h Loading commit data...
liftoff-compiler.cc Loading commit data...
liftoff-compiler.h Loading commit data...
liftoff-register.h Loading commit data...