diff options
| author | Mike Pall <mike> | 2010-01-30 14:33:08 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2010-01-30 14:33:08 +0100 |
| commit | 9a682f341decbecc649c006c1e7bd91b214a93ce (patch) | |
| tree | 15ba569b9045db6b146aefdd43460c5ccd87edf1 | |
| parent | 02e58f5e56b15cae536ba026f364a274b43f0749 (diff) | |
| download | luajit-9a682f341decbecc649c006c1e7bd91b214a93ce.tar.gz luajit-9a682f341decbecc649c006c1e7bd91b214a93ce.tar.bz2 luajit-9a682f341decbecc649c006c1e7bd91b214a93ce.zip | |
Revise hardcoded inlining in lj_asm.c. Saves 1-2K.
| -rw-r--r-- | src/lj_asm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index bb8a6fe7..6562a971 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
| @@ -666,7 +666,7 @@ static Reg ra_restore(ASMState *as, IRRef ref) | |||
| 666 | } | 666 | } |
| 667 | 667 | ||
| 668 | /* Save a register to a spill slot. */ | 668 | /* Save a register to a spill slot. */ |
| 669 | static LJ_AINLINE void ra_save(ASMState *as, IRIns *ir, Reg r) | 669 | static void ra_save(ASMState *as, IRIns *ir, Reg r) |
| 670 | { | 670 | { |
| 671 | RA_DBGX((as, "save $i $r", ir, r)); | 671 | RA_DBGX((as, "save $i $r", ir, r)); |
| 672 | emit_rmro(as, r < RID_MAX_GPR ? XO_MOVto : XO_MOVSDto, | 672 | emit_rmro(as, r < RID_MAX_GPR ? XO_MOVto : XO_MOVSDto, |
| @@ -710,7 +710,7 @@ static Reg ra_evict(ASMState *as, RegSet allow) | |||
| 710 | } | 710 | } |
| 711 | 711 | ||
| 712 | /* Pick any register (marked as free). Evict on-demand. */ | 712 | /* Pick any register (marked as free). Evict on-demand. */ |
| 713 | static LJ_AINLINE Reg ra_pick(ASMState *as, RegSet allow) | 713 | static Reg ra_pick(ASMState *as, RegSet allow) |
| 714 | { | 714 | { |
| 715 | RegSet pick = as->freeset & allow; | 715 | RegSet pick = as->freeset & allow; |
| 716 | if (!pick) | 716 | if (!pick) |
| @@ -720,7 +720,7 @@ static LJ_AINLINE Reg ra_pick(ASMState *as, RegSet allow) | |||
| 720 | } | 720 | } |
| 721 | 721 | ||
| 722 | /* Get a scratch register (marked as free). */ | 722 | /* Get a scratch register (marked as free). */ |
| 723 | static LJ_AINLINE Reg ra_scratch(ASMState *as, RegSet allow) | 723 | static Reg ra_scratch(ASMState *as, RegSet allow) |
| 724 | { | 724 | { |
| 725 | Reg r = ra_pick(as, allow); | 725 | Reg r = ra_pick(as, allow); |
| 726 | ra_modified(as, r); | 726 | ra_modified(as, r); |
| @@ -785,7 +785,7 @@ found: | |||
| 785 | } | 785 | } |
| 786 | 786 | ||
| 787 | /* Allocate a register on-demand. */ | 787 | /* Allocate a register on-demand. */ |
| 788 | static LJ_INLINE Reg ra_alloc1(ASMState *as, IRRef ref, RegSet allow) | 788 | static Reg ra_alloc1(ASMState *as, IRRef ref, RegSet allow) |
| 789 | { | 789 | { |
| 790 | Reg r = IR(ref)->r; | 790 | Reg r = IR(ref)->r; |
| 791 | /* Note: allow is ignored if the register is already allocated. */ | 791 | /* Note: allow is ignored if the register is already allocated. */ |
