Skip to content

Commit

Permalink
Revert "Reapply "Ensure backwards jumps get a yk_location.""
Browse files Browse the repository at this point in the history
This reverts commit c7bf29f.
  • Loading branch information
ltratt committed Dec 18, 2024
1 parent c27a31d commit 4adbf5f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,11 +1222,8 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
vmfetch();
#ifdef USE_YK
YkLocation *ykloc = NULL;
if ((GET_OPCODE(i) == OP_FORLOOP) ||
(GET_OPCODE(i) == OP_TFORLOOP) ||
((GET_OPCODE(i) == OP_JMP) && (GETARG_sJ(i) < 0))) {
if (GET_OPCODE(i) == OP_FORLOOP || GET_OPCODE(i) == OP_TFORLOOP)
ykloc = &cl->p->yklocs[pcRel(pc, cl->p)];
}
yk_mt_control_point(G(L)->yk_mt, ykloc);
#endif
#if 0
Expand Down

0 comments on commit 4adbf5f

Please sign in to comment.