This commit is contained in:
parent
2894c55dfa
commit
88d382b76b
@ -2182,6 +2182,11 @@ static sxi32 VmByteCodeExec(
|
|||||||
VmPopOperand(&pTos, 1);
|
VmPopOperand(&pTos, 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
/*
|
||||||
|
* JMPLFB: * * *
|
||||||
|
*
|
||||||
|
* Creates and enters the jump loop frame on the beginning of each iteration.
|
||||||
|
*/
|
||||||
case PH7_OP_JMPLFB: {
|
case PH7_OP_JMPLFB: {
|
||||||
VmFrame *pFrame;
|
VmFrame *pFrame;
|
||||||
/* Enter the jump loop frame */
|
/* Enter the jump loop frame */
|
||||||
@ -2192,6 +2197,10 @@ static sxi32 VmByteCodeExec(
|
|||||||
pFrame->iFlags = VM_FRAME_LOOP;
|
pFrame->iFlags = VM_FRAME_LOOP;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Leaves and destroys the jump loop frame at the end of each iteration
|
||||||
|
* as well as on 'break' and 'continue' instructions.
|
||||||
|
*/
|
||||||
case PH7_OP_JMPLFE: {
|
case PH7_OP_JMPLFE: {
|
||||||
/* Leave the jump loop frame */
|
/* Leave the jump loop frame */
|
||||||
if(pVm->pFrame->iFlags & VM_FRAME_LOOP) {
|
if(pVm->pFrame->iFlags & VM_FRAME_LOOP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user