• Andreas Haas's avatar
    [wasm][liftoff] Cache the memory start register · fd93f338
    Andreas Haas authored
    WebAssembly functions often have subsequent memory accesses, and each of
    these memory accesses need the start address of the memory in a register.
    With this CL the register with the memory start address is cached, so
    only the first memory access has to load the memory start address into a
    register, subsequent memory accesses can just reuse the register.
    
    In first measurements with the epic benchmark this reduces the size of
    the generated Liftoff code by a bit more than 5%.
    
    R=clemensb@chromium.org
    
    Bug: v8:11862
    Change-Id: Ic33e7e3c00a4209570821269c728187affbeadcf
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2947403
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#75113}
    fd93f338
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 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...