ARM/PPC/MIPS: Fix tailcall from fast function (esp. tostring).

This commit is contained in:
Mike Pall
2012-05-10 16:20:21 +02:00
parent 3fc5948abf
commit 74205dc64b
6 changed files with 1069 additions and 1057 deletions

View File

@@ -1900,6 +1900,7 @@ static void build_subroutines(BuildCtx *ctx)
|. and TMP1, PC, AT
| lbu TMP1, OFS_RA(PC)
| sll TMP1, TMP1, 3
| addiu TMP1, TMP1, 8
|3:
| b ->vm_call_dispatch // Resolve again for tailcall.
|. subu TMP2, BASE, TMP1