本文整理了Java中com.android.dx.rop.code.BasicBlockList.getEffectiveInstructionCount()
方法的一些代码示例,展示了BasicBlockList.getEffectiveInstructionCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BasicBlockList.getEffectiveInstructionCount()
方法的具体详情如下:
包路径:com.android.dx.rop.code.BasicBlockList
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!