Commit 6ec45e3
committed
Adjust the calleeSavedRegs on top frame for LoongArch64/RISCV64
to support the GSCookie.
The frame layout:
| |
|-----------------------|
| incoming arguments |
+=======================+ <---- Caller's SP
| Varargs regs space | // Only for varargs main functions; not used for LA64.
|-----------------------|
| MonitorAcquired | // 8 bytes; for synchronized methods
|-----------------------|
| PSP slot | // 8 bytes (omitted in NativeAOT ABI)
|-----------------------|
|Callee saved registers | // multiple of 8 bytes, not includting FP/RA
|-----------------------|
| Saved RA | // 8 bytes
|-----------------------|
| Saved FP | // 8 bytes
|-----------------------|
| possible GS cookie |
|-----------------------|
| locals, temps, etc. |
|-----------------------|
| possible GS cookie |
|-----------------------|
| Outgoing arg space | // multiple of 8 bytes; if required (i.e., #outsz != 0)
|-----------------------| <---- Ambient SP
| | |
~ | Stack grows ~
| | downward |1 parent a70b9a1 commit 6ec45e3
7 files changed
Lines changed: 497 additions & 722 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | 451 | | |
472 | 452 | | |
473 | 453 | | |
| |||
1272 | 1252 | | |
1273 | 1253 | | |
1274 | 1254 | | |
1275 | | - | |
1276 | 1255 | | |
1277 | 1256 | | |
1278 | 1257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | | - | |
| 4090 | + | |
4091 | 4091 | | |
4092 | 4092 | | |
4093 | 4093 | | |
| |||
4119 | 4119 | | |
4120 | 4120 | | |
4121 | 4121 | | |
4122 | | - | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
4123 | 4155 | | |
4124 | 4156 | | |
4125 | 4157 | | |
| |||
4745 | 4777 | | |
4746 | 4778 | | |
4747 | 4779 | | |
4748 | | - | |
4749 | | - | |
4750 | | - | |
4751 | | - | |
4752 | | - | |
| 4780 | + | |
| 4781 | + | |
4753 | 4782 | | |
4754 | | - | |
4755 | | - | |
4756 | | - | |
4757 | | - | |
4758 | | - | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
4759 | 4786 | | |
4760 | | - | |
4761 | | - | |
4762 | 4787 | | |
4763 | 4788 | | |
4764 | 4789 | | |
| |||
0 commit comments