• Pierre Langlois's avatar
    [arm] Introduce UseScratchRegisterScope for VFP registers · 610a3610
    Pierre Langlois authored
    Replace hard-coded uses of `kScratchDoubleReg`, `kScratchDoubleReg2` and
    `kScratchQuadReg` with the safer `UseScratchRegisterScope`. The reason for doing
    this is to be able to safely use these scratch registers inside the assembler
    without having to worry about the code generator using them too.
    
    For instance, using this scope showed us that `TryInlineTruncateDoubleToI` is
    using a FP scratch register while the caller, the `DoubleToI` stub, is using it
    too. We are safe only because the stub passes the scratch register to
    `TryInlineTruncateDoubleToI` as an input. Using the scope forces us to
    explicitely use the input register instead of acquiring a new scratch.
    
    Bug: v8:6553
    Change-Id: I84c53cd851d31ea33b0e3ef398d7a858b7e3e3c4
    Reviewed-on: https://chromium-review.googlesource.com/895460Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
    Cr-Commit-Position: refs/heads/master@{#51061}
    610a3610
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...