lua-users home
lua-l archive

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


Hi,

Assuming that I have a JITed function - then what would be the best
way to implement a call to it? I assume it has to be in ldo.c - in
luaD_precall()?

It seems to me that I should call the JITed function just before the return 0:

   case LUA_TLCL: { /* Lua function: prepare its call */
   ..
   if (JITed) {
      call JITed function
      return 1; ?
   }
   return 0;

Should  I return 1 to indicate that the function has been executed as
shown above? Am not sure what else I should take care of.

Thanks and Regards

Dibyendu