From 1156519af62cda25ff40f6805ce1f37cf8cdbbd9 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 29 Apr 2019 11:44:17 +0200 Subject: [PATCH] This is a compiler task to fill key and value variables names. --- engine/vm.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index 7e6dfd5..1b7a5d6 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -4049,31 +4049,6 @@ static sxi32 VmByteCodeExec( goto Abort; } #endif - if(SyStringLength(&pInfo->sValue) < 1) { - /* Take the variable name from the top of the stack */ - if((pTos->iFlags & MEMOBJ_STRING) == 0) { - /* Force a string cast */ - PH7_MemObjToString(pTos); - } - /* Duplicate name */ - if(SyBlobLength(&pTos->sBlob) > 0) { - pName = SyMemBackendDup(&pVm->sAllocator, SyBlobData(&pTos->sBlob), SyBlobLength(&pTos->sBlob)); - SyStringInitFromBuf(&pInfo->sValue, pName, SyBlobLength(&pTos->sBlob)); - } - VmPopOperand(&pTos, 1); - } - if((pInfo->iFlags & PH7_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) < 1) { - if((pTos->iFlags & MEMOBJ_STRING) == 0) { - /* Force a string cast */ - PH7_MemObjToString(pTos); - } - /* Duplicate name */ - if(SyBlobLength(&pTos->sBlob) > 0) { - pName = SyMemBackendDup(&pVm->sAllocator, SyBlobData(&pTos->sBlob), SyBlobLength(&pTos->sBlob)); - SyStringInitFromBuf(&pInfo->sKey, pName, SyBlobLength(&pTos->sBlob)); - } - VmPopOperand(&pTos, 1); - } /* Make sure we are dealing with a hashmap aka 'array' or an object */ if((pTos->iFlags & (MEMOBJ_HASHMAP | MEMOBJ_OBJ)) == 0 || SyStringLength(&pInfo->sValue) < 1) { /* Jump out of the loop */