Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ldo.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ l_sinline int precallC (lua_State *L, StkId func, int nresults,
** (so that it includes the function itself). Return the number of
** results, if it was a C function, or -1 for a Lua function.
*/
__attribute__((yk_unroll_safe))
int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
int narg1, int delta) {
retry:
Expand Down Expand Up @@ -597,6 +598,7 @@ int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func,
** returns NULL, with all the results on the stack, starting at the
** original function position.
*/
__attribute__((yk_unroll_safe))
CallInfo *luaD_precall (lua_State *L, StkId func, int nresults) {
retry:
switch (ttypetag(s2v(func))) {
Expand Down
1 change: 1 addition & 0 deletions src/lfunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ static void poptbclist (lua_State *L) {
** Close all upvalues and to-be-closed variables up to the given stack
** level. Return restored 'level'.
*/
__attribute__((yk_unroll_safe))
StkId luaF_close (lua_State *L, StkId level, int status, int yy) {
ptrdiff_t levelrel = savestack(L, level);
luaF_closeupval(L, level); /* first, close the upvalues */
Expand Down
1 change: 1 addition & 0 deletions src/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ static int floatforloop (StkId ra) {
** if 'slot' is NULL, 't' is not a table; otherwise, 'slot' points to
** t[k] entry (which must be empty).
*/
__attribute__((yk_unroll_safe))
void luaV_finishget (lua_State *L, const TValue *t, TValue *key, StkId val,
const TValue *slot) {
int loop; /* counter to avoid infinite loops */
Expand Down