diff options
author | Mike Pall <mike> | 2013-05-16 19:59:38 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2013-05-16 19:59:38 +0200 |
commit | 0f79d4741f29637de1eaaa603fdd0d161feb390d (patch) | |
tree | ebb52a50d4371fbde02dd9511c8fd6da2564e05c /src/lj_asm.c | |
parent | 1c7650f782c4e6482cf496699af9136c89fe22b2 (diff) | |
download | luajit-0f79d4741f29637de1eaaa603fdd0d161feb390d.tar.gz luajit-0f79d4741f29637de1eaaa603fdd0d161feb390d.tar.bz2 luajit-0f79d4741f29637de1eaaa603fdd0d161feb390d.zip |
Handle calls with max. args in backends even after SPLIT.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 038f4d1c..316e81d6 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -948,7 +948,7 @@ static void asm_collectargs(ASMState *as, IRIns *ir, | |||
948 | const CCallInfo *ci, IRRef *args) | 948 | const CCallInfo *ci, IRRef *args) |
949 | { | 949 | { |
950 | uint32_t n = CCI_NARGS(ci); | 950 | uint32_t n = CCI_NARGS(ci); |
951 | lua_assert(n <= CCI_NARGS_MAX); | 951 | lua_assert(n <= CCI_NARGS_MAX*2); /* Account for split args. */ |
952 | if ((ci->flags & CCI_L)) { *args++ = ASMREF_L; n--; } | 952 | if ((ci->flags & CCI_L)) { *args++ = ASMREF_L; n--; } |
953 | while (n-- > 1) { | 953 | while (n-- > 1) { |
954 | ir = IR(ir->op1); | 954 | ir = IR(ir->op1); |