/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public static void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public static void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
/** * Updates the ROP statistics. * * @param nonOptRmeth non-optimized method * @param rmeth optimized method */ public static void updateRopStatistics(RopMethod nonOptRmeth, RopMethod rmeth) { int oldCountInsns = nonOptRmeth.getBlocks().getEffectiveInstructionCount(); int oldCountRegs = nonOptRmeth.getBlocks().getRegCount(); if (DEBUG) { System.err.println("insns (old/new): " + oldCountInsns + "/" + rmeth.getBlocks().getEffectiveInstructionCount() + " regs (o/n):" + oldCountRegs + "/" + rmeth.getBlocks().getRegCount()); } int newCountInsns = rmeth.getBlocks().getEffectiveInstructionCount(); runningDeltaInsns += (newCountInsns - oldCountInsns); runningDeltaRegisters += (rmeth.getBlocks().getRegCount() - oldCountRegs); runningTotalInsns += newCountInsns; }
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();
= rmeth.getBlocks().getEffectiveInstructionCount(); int skipInsns = skipRopMethod.getBlocks().getEffectiveInstructionCount();