Browse Source

Remove unused and useless VM instruction.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
798fd7d3b2
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 0 additions and 18 deletions
  1. +0
    -17
      engine/vm.c
  2. +0
    -1
      include/ph7int.h

+ 0
- 17
engine/vm.c View File

@ -2283,20 +2283,6 @@ static sxi32 VmByteCodeExec(
/* Invalidate any prior representation */
MemObjSetType(pTos, MEMOBJ_CHAR);
break;
/*
* CVT_NUMC: * * *
*
* Force the top of the stack to be a numeric type (integer,real or both).
*/
case PH7_OP_CVT_NUMC:
#ifdef UNTRUST
if(pTos < pStack) {
goto Abort;
}
#endif
/* Force a numeric cast */
PH7_MemObjToNumeric(pTos);
break;
/*
* CVT_OBJ: * * *
*
@ -5348,9 +5334,6 @@ static const char *VmInstrToString(sxi32 nOp) {
case PH7_OP_CVT_OBJ:
zOp = "CVT_OBJ";
break;
case PH7_OP_CVT_NUMC:
zOp = "CVT_NUMC";
break;
case PH7_OP_INCR:
zOp = "INCR";
break;

+ 0
- 1
include/ph7int.h View File

@ -1420,7 +1420,6 @@ enum ph7_vm_op {
PH7_OP_YIELD, /* Stack yield */
PH7_OP_CVT_BOOL, /* Boolean cast */
PH7_OP_CVT_CHAR, /* Char cast */
PH7_OP_CVT_NUMC, /* Numeric (integer,real or both) type cast */
PH7_OP_INCR, /* Increment ++ */
PH7_OP_DECR, /* Decrement -- */
PH7_OP_NEW, /* new */

Loading…
Cancel
Save