mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
c71cdf4c36
@ -687,10 +687,12 @@ static BCPos bcemit_jmp(FuncState *fs)
|
|||||||
BCPos j = fs->pc - 1;
|
BCPos j = fs->pc - 1;
|
||||||
BCIns *ip = &fs->bcbase[j].ins;
|
BCIns *ip = &fs->bcbase[j].ins;
|
||||||
fs->jpc = NO_JMP;
|
fs->jpc = NO_JMP;
|
||||||
if ((int32_t)j >= (int32_t)fs->lasttarget && bc_op(*ip) == BC_UCLO)
|
if ((int32_t)j >= (int32_t)fs->lasttarget && bc_op(*ip) == BC_UCLO) {
|
||||||
setbc_j(ip, NO_JMP);
|
setbc_j(ip, NO_JMP);
|
||||||
else
|
fs->lasttarget = j+1;
|
||||||
|
} else {
|
||||||
j = bcemit_AJ(fs, BC_JMP, fs->freereg, NO_JMP);
|
j = bcemit_AJ(fs, BC_JMP, fs->freereg, NO_JMP);
|
||||||
|
}
|
||||||
jmp_append(fs, &j, jpc);
|
jmp_append(fs, &j, jpc);
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user