lua-users home
lua-l archive

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


On 19 March 2015 at 23:41, Hisham <h@hisham.hm> wrote:
>> I was wondering if I can simply code for OP_CALL when the JIT
>> encounters OP_TAILCALL - in a simple test it seems to work okay but am
>> wondering if there might be something that means that I need to code
>> OP_TAILCALL differently.
>
> If you do that, code that works will start producing stack overflows.
>

I haven't yet figured out how to properly implement OP_TAILCALL in a
JITed function. OP_CALL appears to work unless there is deep
recursion. The Lua5.3 tests do fail in calls.lua - the failure occurs
after about 4200 calls in my environment.

Regards
Dibyendu