diff options
author | Mike Pall <mike> | 2013-05-13 19:49:46 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-05-13 19:49:46 +0200 |
commit | acda75ad2cc30cff0a390ae0d232a098296e517e (patch) | |
tree | 2aa351a4f6c1c2b8ff60b46c3974c148ed135d24 /src/lj_asm_mips.h | |
parent | 23e47f2913623063936d8c8d8b25ee25a5db2070 (diff) | |
download | luajit-acda75ad2cc30cff0a390ae0d232a098296e517e.tar.gz luajit-acda75ad2cc30cff0a390ae0d232a098296e517e.tar.bz2 luajit-acda75ad2cc30cff0a390ae0d232a098296e517e.zip |
Refactor CCallInfo representation for split arguments.
Diffstat (limited to 'src/lj_asm_mips.h')
-rw-r--r-- | src/lj_asm_mips.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_asm_mips.h b/src/lj_asm_mips.h index 122e5ecd..5070a7a2 100644 --- a/src/lj_asm_mips.h +++ b/src/lj_asm_mips.h | |||
@@ -226,7 +226,7 @@ static void asm_fusexref(ASMState *as, MIPSIns mi, Reg rt, IRRef ref, | |||
226 | /* Generate a call to a C function. */ | 226 | /* Generate a call to a C function. */ |
227 | static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args) | 227 | static void asm_gencall(ASMState *as, const CCallInfo *ci, IRRef *args) |
228 | { | 228 | { |
229 | uint32_t n, nargs = CCI_NARGS(ci); | 229 | uint32_t n, nargs = CCI_XNARGS(ci); |
230 | int32_t ofs = 16; | 230 | int32_t ofs = 16; |
231 | Reg gpr, fpr = REGARG_FIRSTFPR; | 231 | Reg gpr, fpr = REGARG_FIRSTFPR; |
232 | if ((void *)ci->func) | 232 | if ((void *)ci->func) |
@@ -1726,7 +1726,7 @@ static void asm_tail_prep(ASMState *as) | |||
1726 | static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) | 1726 | static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) |
1727 | { | 1727 | { |
1728 | IRRef args[CCI_NARGS_MAX]; | 1728 | IRRef args[CCI_NARGS_MAX]; |
1729 | uint32_t i, nargs = (int)CCI_NARGS(ci); | 1729 | uint32_t i, nargs = CCI_XNARGS(ci); |
1730 | int nslots = 4, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR; | 1730 | int nslots = 4, ngpr = REGARG_NUMGPR, nfpr = REGARG_NUMFPR; |
1731 | asm_collectargs(as, ir, ci, args); | 1731 | asm_collectargs(as, ir, ci, args); |
1732 | for (i = 0; i < nargs; i++) { | 1732 | for (i = 0; i < nargs; i++) { |