com.android.dx.rop.code.BasicBlockList.getEffectiveInstructionCount()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(61)

本文整理了Java中com.android.dx.rop.code.BasicBlockList.getEffectiveInstructionCount()方法的一些代码示例,展示了BasicBlockList.getEffectiveInstructionCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BasicBlockList.getEffectiveInstructionCount()方法的具体详情如下:
包路径:com.android.dx.rop.code.BasicBlockList
类名称:BasicBlockList
方法名:getEffectiveInstructionCount

BasicBlockList.getEffectiveInstructionCount介绍

[英]Gets the total instruction count for this instance, ignoring mark-local instructions which are not actually emitted.
[中]获取此实例的指令总数,忽略实际未发出的标记本地指令。

代码示例

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

/**
 * 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;
}

代码示例来源:origin: nikita36078/J2ME-Loader

/**
 * 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;
}

代码示例来源:origin: com.android/dx

/**
 * 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;
}

代码示例来源:origin: com.android.tools.build/builder

/**
 * 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;
}

代码示例来源:origin: com.google.android.tools/dx

/**
 * 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;
}

代码示例来源:origin: dragome/dragome-sdk

/**
 * 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;
}

代码示例来源:origin: nikita36078/J2ME-Loader

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

代码示例来源:origin: dragome/dragome-sdk

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

代码示例来源:origin: com.google.android.tools/dx

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

代码示例来源:origin: com.android/dx

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

代码示例来源:origin: com.android.tools.build/builder

= rmeth.getBlocks().getEffectiveInstructionCount();
int skipInsns
    = skipRopMethod.getBlocks().getEffectiveInstructionCount();

相关文章