|
@@ -1162,11 +1162,7 @@ void luaV_finishOp (lua_State *L) {
|
|
#define vmcase(l) case l:
|
|
#define vmcase(l) case l:
|
|
#define vmbreak break
|
|
#define vmbreak break
|
|
|
|
|
|
-#if AOT_USE_TAILCALL
|
|
|
|
-static void luaV_execute_(lua_State *L, CallInfo *ci)
|
|
|
|
-#else
|
|
|
|
static CallInfo *luaV_execute_(lua_State *L, CallInfo *ci)
|
|
static CallInfo *luaV_execute_(lua_State *L, CallInfo *ci)
|
|
-#endif
|
|
|
|
{
|
|
{
|
|
LClosure *cl;
|
|
LClosure *cl;
|
|
TValue *k;
|
|
TValue *k;
|
|
@@ -1182,11 +1178,7 @@ static CallInfo *luaV_execute_(lua_State *L, CallInfo *ci)
|
|
cl = clLvalue(s2v(ci->func));
|
|
cl = clLvalue(s2v(ci->func));
|
|
#if LUAOT
|
|
#if LUAOT
|
|
if (cl->p->aot_implementation) {
|
|
if (cl->p->aot_implementation) {
|
|
- #if AOT_USE_TAILCALL
|
|
|
|
- return cl->p->aot_implementation(L, ci);
|
|
|
|
- #else
|
|
|
|
- return ci;
|
|
|
|
- #endif
|
|
|
|
|
|
+ return ci;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
k = cl->p->k;
|
|
k = cl->p->k;
|
|
@@ -1770,11 +1762,7 @@ static CallInfo *luaV_execute_(lua_State *L, CallInfo *ci)
|
|
}
|
|
}
|
|
ret: /* return from a Lua function */
|
|
ret: /* return from a Lua function */
|
|
if (ci->callstatus & CIST_FRESH)
|
|
if (ci->callstatus & CIST_FRESH)
|
|
- #if AOT_USE_TAILCALL
|
|
|
|
- return; /* end this frame */
|
|
|
|
- #else
|
|
|
|
return NULL; /* end this frame */
|
|
return NULL; /* end this frame */
|
|
- #endif
|
|
|
|
else {
|
|
else {
|
|
ci = ci->previous;
|
|
ci = ci->previous;
|
|
goto returning; /* continue running caller in this frame */
|
|
goto returning; /* continue running caller in this frame */
|
|
@@ -1889,9 +1877,6 @@ static CallInfo *luaV_execute_(lua_State *L, CallInfo *ci)
|
|
|
|
|
|
#ifndef LUAOT_IS_MODULE
|
|
#ifndef LUAOT_IS_MODULE
|
|
void luaV_execute (lua_State *L, CallInfo *ci) {
|
|
void luaV_execute (lua_State *L, CallInfo *ci) {
|
|
-#if AOT_USE_TAILCALL
|
|
|
|
- return luaV_execute_(L, ci);
|
|
|
|
-#else
|
|
|
|
do {
|
|
do {
|
|
LClosure *cl = clLvalue(s2v(ci->func));
|
|
LClosure *cl = clLvalue(s2v(ci->func));
|
|
if (cl->p->aot_implementation) {
|
|
if (cl->p->aot_implementation) {
|
|
@@ -1900,7 +1885,6 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
|
|
ci = luaV_execute_(L, ci);
|
|
ci = luaV_execute_(L, ci);
|
|
}
|
|
}
|
|
} while (ci);
|
|
} while (ci);
|
|
-#endif
|
|
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|