• Ng Zhi An's avatar
    [liftoff][wasm-simd] Encode SIMD registers in LiftoffRegister · 75fa5d42
    Ng Zhi An authored
    This introduces a new constant kNeedS128RegPair, which is set for
    architecture where a pair of FP registers (DoubleRegister) is mapped to
    single Simd128Register (ARM).
    
    In this case, a new RegClass, kFpRegPair, is defined to represent
    LiftoffRegister of this type. kFpRegPair will be kNoReg on all other
    architectures.
    
    We add 1 more bit to the encoding on ARM, so now the top bit is set for
    kFpRegPair, the second most top bit is set for kGpRegPair. When the top
    bit is set, we encode the FP register code into the bottom bits of
    code_. Note that this is directly encoded, i.e. not added to kMaxGpRegCode,
    so we can save an add/subtract when converting to/from DoubleRegister.
    We only need to store 1 FP register, the low register, since the high
    other register is implicity the next register. Note that the stored
    register is *always* an even-numbered register.
    
    Bug: v8:9909
    Change-Id: I78d603c9938c3d0add9bd3ca77ddebbfa7abbc05
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1973276
    Commit-Queue: Zhi An Ng <zhin@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#65508}
    75fa5d42
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
ast Loading commit data...
base Loading commit data...
builtins Loading commit data...
codegen Loading commit data...
common Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
d8 Loading commit data...
date Loading commit data...
debug Loading commit data...
deoptimizer Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
extensions Loading commit data...
flags Loading commit data...
handles Loading commit data...
heap Loading commit data...
ic Loading commit data...
init Loading commit data...
inspector Loading commit data...
interpreter Loading commit data...
json Loading commit data...
libplatform Loading commit data...
libsampler Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parsing Loading commit data...
profiler Loading commit data...
protobuf Loading commit data...
regexp Loading commit data...
roots Loading commit data...
runtime Loading commit data...
sanitizer Loading commit data...
snapshot Loading commit data...
strings Loading commit data...
tasks Loading commit data...
third_party Loading commit data...
torque Loading commit data...
tracing Loading commit data...
trap-handler Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
DEPS Loading commit data...
OWNERS Loading commit data...