本文整理汇总了Java中com.android.dx.rop.code.Insn.getResult方法的典型用法代码示例。如果您正苦于以下问题:Java Insn.getResult方法的具体用法?Java Insn.getResult怎么用?Java Insn.getResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.dx.rop.code.Insn
的用法示例。
在下文中一共展示了Insn.getResult方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getNextMoveResultPseudo
import com.android.dx.rop.code.Insn; //导入方法依赖的package包/类
/**
* Looks forward to the current block's primary successor, returning
* the RegisterSpec of the result of the move-result-pseudo at the
* top of that block or null if none.
*
* @return {@code null-ok;} result of move-result-pseudo at the beginning of
* primary successor
*/
private RegisterSpec getNextMoveResultPseudo()
{
int label = block.getPrimarySuccessor();
if (label < 0) {
return null;
}
Insn insn
= method.getBlocks().labelToBlock(label).getInsns().get(0);
if (insn.getOpcode().getOpcode() != RegOps.MOVE_RESULT_PSEUDO) {
return null;
} else {
return insn.getResult();
}
}
示例2: NormalSsaInsn
import com.android.dx.rop.code.Insn; //导入方法依赖的package包/类
/**
* Creates an instance.
*
* @param insn Rop insn to wrap
* @param block block that contains this insn
*/
NormalSsaInsn(final Insn insn, final SsaBasicBlock block) {
super(insn.getResult(), block);
this.insn = insn;
}