Compiler rework merge #43

Sapludināts
belliash sapludināja 55 revīzijas no compiler_rework uz master 2018-08-16 21:28:49 +02:00
Rāda tikai revīzijas 8cbfca2bc9 izmaiņas - Rādīt visas revīzijas

Parādīt failu

@ -5103,7 +5103,7 @@ static sxi32 VmByteCodeExec(
break; break;
} }
/* /*
* OP_CALL P1 * * * OP_CALL P1 P2 *
* Call a PHP or a foreign function and push the return value of the called * Call a PHP or a foreign function and push the return value of the called
* function on the stack. * function on the stack.
*/ */
@ -5244,8 +5244,10 @@ static sxi32 VmByteCodeExec(
PH7_MemObjRelease(pTos); PH7_MemObjRelease(pTos);
break; break;
} }
/* Always select an appropriate function to call */ /* Select an appropriate function to call, if not entry point */
if(pInstr->iP2 == 0) {
pVmFunc = VmOverload(&(*pVm), pVmFunc, pArg, (int)(pTos - pArg)); pVmFunc = VmOverload(&(*pVm), pVmFunc, pArg, (int)(pTos - pArg));
}
/* Extract the formal argument set */ /* Extract the formal argument set */
aFormalArg = (ph7_vm_func_arg *)SySetBasePtr(&pVmFunc->aArgs); aFormalArg = (ph7_vm_func_arg *)SySetBasePtr(&pVmFunc->aArgs);
/* Create a new VM frame */ /* Create a new VM frame */