Refactor CCallInfo representation for split arguments.

This commit is contained in:
Mike Pall
2013-05-13 19:49:46 +02:00
parent 23e47f2913
commit acda75ad2c
6 changed files with 74 additions and 59 deletions

View File

@@ -1197,7 +1197,7 @@ static void asm_newref(ASMState *as, IRIns *ir)
static void asm_collectargs(ASMState *as, IRIns *ir,
const CCallInfo *ci, IRRef *args)
{
uint32_t n = CCI_NARGS(ci);
uint32_t n = CCI_XNARGS(ci);
lua_assert(n <= CCI_NARGS_MAX);
if ((ci->flags & CCI_L)) { *args++ = ASMREF_L; n--; }
while (n-- > 1) {