From 38b0e6128da7796300e2e8621e87835e16539f5b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Feb 2002 20:39:12 -0200 Subject: simpler implementation for `for' loops --- lcode.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lcode.c') diff --git a/lcode.c b/lcode.c index b8a4ed19..c50596fb 100644 --- a/lcode.c +++ b/lcode.c @@ -76,17 +76,6 @@ static void luaK_fixjump (FuncState *fs, int pc, int dest) { } -/* -** prep-for instructions (OP_FORPREP & OP_TFORPREP) have a negated jump, -** as they simulate the real jump... -*/ -void luaK_fixfor (FuncState *fs, int pc, int dest) { - Instruction *jmp = &fs->f->code[pc]; - int offset = dest-(pc+1); - SETARG_sBc(*jmp, -offset); -} - - /* ** returns current `pc' and marks it as a jump target (to avoid wrong ** optimizations with consecutive instructions not in the same basic block). -- cgit v1.2.3-55-g6feb