lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Right now the JITed function is called in luaD_precall() - just like a
C function would be. So this means that tail call isn't possible.

What I need to do is that in the case of tail call - not have
luaD_precall() call the JITed function - instead call it at the end of
OP_TAILCALL sequence where the 'goto newframe' occurs. Then I can use
LLVM's tail call operation, followed by a 'ret'.

I'll look at implementing this once I have completed implementing all op codes.

Regards
Dibyendu