Explicitly indicate tailcall from fast function fallback.

This commit is contained in:
Mike Pall
2010-09-02 17:16:56 +02:00
parent 44fb3ebc64
commit f708d31bcc
6 changed files with 967 additions and 965 deletions

View File

@@ -218,7 +218,7 @@ LJLIB_ASM(tostring) LJLIB_REC(.)
L->top = o+1; /* Only keep one argument. */
if (!tvisnil(mo = lj_meta_lookup(L, o, MM_tostring))) {
copyTV(L, L->base-1, mo); /* Replace callable. */
return FFH_RETRY;
return FFH_TAILCALL;
} else {
GCstr *s;
if (tvisnum(o)) {