/* Emit a SETLIST instruction. 'base' is register that keeps table; 'nelems' is #table plus those to be stored now; 'tostore' is number of values (in registers 'base + 1',...) to add to table (or LUA_MULTRET to add up to stack top).  */
void luaK_setlist(FuncState *fs, int base, int nelems, int tostore)
/* Emit a SETLIST instruction. 'base' is register that keeps table; 'nelems' is #table plus those to be stored now; 'tostore' is number of values (in registers 'base + 1',...) to add to table (or LUA_MULTRET to add up to stack top).  */
void luaK_setlist(FuncState *fs, int base, int nelems, int tostore)
{
    int extra = nelems / (MAXARG_C + 1);
    nelems %= (MAXARG_C + 1);
    luaK_codeABCk(fs, OP_SETLIST, base, tostore, nelems, 1);
    codeextraarg(fs, extra);
  }
  fs->freereg = base + 1;
}