1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-17 01:00:20 +02:00

Simplify register representation again

There's only one flag, "callee-save".  Also the regno range is limited
to 0-63 inclusive, to allow for cheap register sets as uint64_t values.
This commit is contained in:
Andy Wingo 2019-04-25 19:12:55 +02:00
parent af4e0422ae
commit 2602f17fb4
10 changed files with 304 additions and 292 deletions

View file

@ -3,14 +3,14 @@
static void
maybe_save(jit_state_t *j, jit_gpr_t reg)
{
if (jit_gpr_is_callee_save (j, reg))
if (jit_gpr_is_callee_save (reg))
jit_pushr(j, reg);
}
static void
maybe_restore(jit_state_t *j, jit_gpr_t reg)
{
if (jit_gpr_is_callee_save (j, reg))
if (jit_gpr_is_callee_save (reg))
jit_popr(j, reg);
}