diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -77,17 +77,6 @@ static void luaK_fixjump (FuncState *fs, int pc, int dest) { | |||
77 | 77 | ||
78 | 78 | ||
79 | /* | 79 | /* |
80 | ** prep-for instructions (OP_FORPREP & OP_TFORPREP) have a negated jump, | ||
81 | ** as they simulate the real jump... | ||
82 | */ | ||
83 | void luaK_fixfor (FuncState *fs, int pc, int dest) { | ||
84 | Instruction *jmp = &fs->f->code[pc]; | ||
85 | int offset = dest-(pc+1); | ||
86 | SETARG_sBc(*jmp, -offset); | ||
87 | } | ||
88 | |||
89 | |||
90 | /* | ||
91 | ** returns current `pc' and marks it as a jump target (to avoid wrong | 80 | ** returns current `pc' and marks it as a jump target (to avoid wrong |
92 | ** optimizations with consecutive instructions not in the same basic block). | 81 | ** optimizations with consecutive instructions not in the same basic block). |
93 | ** discharge list of jumps to last target. | 82 | ** discharge list of jumps to last target. |