[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: OP_TAILCALL versus OP_CALL question
- From: Dibyendu Majumdar <mobile@...>
- Date: Tue, 24 Mar 2015 00:28:56 +0000
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