Repository navigation
Commit cc192ba
ppc64: Replace r0 with UseScratchRegisterScope in Generate_JSEntryVariant
Use a scratch register acquired from UseScratchRegisterScope instead of
the special r0 register for the entry-frame setup in
Generate_JSEntryVariant. This is consistent with the register-allocator
model used elsewhere in the PPC assembler and avoids relying on r0's
special encoding behavior.
The scratch pool (DefaultTmpList) contains callee-saved registers (r25,
r26), so acquiring from it is only safe once kCalleeSaved has been
spilled. The converted code sits between MultiPush(kCalleeSaved) and
MultiPop(kCalleeSaved), where that invariant holds. The LR save/restore
(mflr/mtlr) around those push/pop points is left using r0 on purpose: it
runs while the caller's callee-saved values are still live in those pool
registers, and r0 is the idiomatic volatile scratch for LR shuffling in
the PPC prologue/epilogue.
No functional change.
IT: 8
Change-Id: Id80a975fd42ed0868f7ab4531d306f30f4a7e077
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/8485449
Reviewed-by: Milad Farazmand <mfarazma@ibm.com>
Auto-Submit: John <junyan1@ibm.com>
Commit-Queue: John <junyan1@ibm.com>
Cr-Commit-Position: refs/heads/main@{#110256}1 parent 1ad6606 commit cc192ba
1 file changed
Lines changed: 24 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
880 | 884 | | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
885 | 889 | | |
886 | | - | |
887 | | - | |
888 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
889 | 893 | | |
890 | | - | |
891 | | - | |
892 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
893 | 898 | | |
894 | 899 | | |
895 | 900 | | |
| |||
0 commit comments