diff options
author | John Hawthorn <john@hawthorn.email> | 2021-08-04 16:17:36 -0700 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:39 -0400 |
commit | 8fa0ee4d404f7cc9ff64f8bafcd53f43aed64914 (patch) | |
tree | 6f158562a320a3ff069234bf6ebe4e3a64d21ea9 /yjit_core.h | |
parent | ed8aa3409a606a1c254eb94f7446827a11c66df2 (diff) |
Use callee-saved regs for REG_SP, REG_EP, REG_CFP
Diffstat (limited to 'yjit_core.h')
-rw-r--r-- | yjit_core.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/yjit_core.h b/yjit_core.h index 877f1a3686..6d8f3fcfad 100644 --- a/yjit_core.h +++ b/yjit_core.h @@ -4,12 +4,10 @@ #include "stddef.h" #include "yjit_asm.h" -// Register YJIT receives the CFP and EC into -#define REG_CFP RSI -#define REG_EC RDI - -// Register YJIT loads the SP into -#define REG_SP RDX +// Callee-saved regs +#define REG_CFP R13 +#define REG_EC R12 +#define REG_SP RBX // Scratch registers used by YJIT #define REG0 RAX |