Skip to content

Commit

Permalink
Merge pull request #97 from vext01/revert-while-loop-locs
Browse files Browse the repository at this point in the history
Revert "Ensure backwards jumps get a yk_location."
  • Loading branch information
ltratt authored Nov 29, 2024
2 parents 7696f18 + 2555730 commit 7ced271
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 7ced271

Please sign in to comment.