From 88d382b76b5f366999b02341c66fcd69fda791c9 Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 16 Apr 2019 19:12:39 +0200 Subject: [PATCH] Add missing VM OP descriptions. --- engine/vm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/vm.c b/engine/vm.c index 89252ac..d24a1d8 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -2182,6 +2182,11 @@ static sxi32 VmByteCodeExec( VmPopOperand(&pTos, 1); } break; + /* + * JMPLFB: * * * + * + * Creates and enters the jump loop frame on the beginning of each iteration. + */ case PH7_OP_JMPLFB: { VmFrame *pFrame; /* Enter the jump loop frame */ @@ -2192,6 +2197,10 @@ static sxi32 VmByteCodeExec( pFrame->iFlags = VM_FRAME_LOOP; 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: { /* Leave the jump loop frame */ if(pVm->pFrame->iFlags & VM_FRAME_LOOP) {