| 1 |
|
| 2 |
from rpython.jit.backend.aarch64.locations import (RegisterLocation, |
| 3 |
ZeroRegister, VFPRegisterLocation) |
| 4 |
|
| 5 |
|
| 6 |
registers = [RegisterLocation(i) for i in range(31)] |
| 7 |
sp = xzr = ZeroRegister() |
| 8 |
[x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, |
| 9 |
x11, x12, x13, x14, x15, x16, x17, x18, x19, x20, |
| 10 |
x21, x22, x23, x24, x25, x26, x27, x28, x29, x30] = registers |
| 11 |
|
| 12 |
vfpregisters = [VFPRegisterLocation(i) for i in range(32)] |
| 13 |
all_vfp_regs = vfpregisters[:8] |
| 14 |
all_regs = registers[:14]+ [x19, x20] |
| 15 |
|
| 16 |
lr = x30 |
| 17 |
fp = x29 |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
ip1 = x17 |
| 22 |
ip0 = x16 |
| 23 |
ip2 = x15 |
| 24 |
ip3 = x14 |
| 25 |
|
| 26 |
callee_saved_registers = [x19, x20] |
| 27 |
vfp_argument_regs = caller_vfp_resp = all_vfp_regs[:8] |
| 28 |
[d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, |
| 29 |
d15, d16, d17, d18, d19, d20, d21, d22, d23, d24, d25, d26, d27, |
| 30 |
d28, d29, d30, d31] = vfpregisters |
| 31 |
|
| 32 |
vfp_ip = d15 |
| 33 |
|
| 34 |
argument_regs = [x0, x1, x2, x3, x4, x5, x6, x7] |
| 35 |
callee_resp = [x19, x20] |
| 36 |
caller_resp = argument_regs + [x8, x9, x10, x11, x12, x13] |