Java Code Examples for com.android.dx.rop.code.Insn#getResult()
The following examples show how to use
com.android.dx.rop.code.Insn#getResult() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RopTranslator.java From Box with Apache License 2.0 | 6 votes |
/** * 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(); } }
Example 2
Source File: RopTranslator.java From Box with Apache License 2.0 | 6 votes |
/** * 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(); } }
Example 3
Source File: RopTranslator.java From J2ME-Loader with Apache License 2.0 | 6 votes |
/** * 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(); } }
Example 4
Source File: RopTranslator.java From buck with Apache License 2.0 | 6 votes |
/** * 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(); } }
Example 5
Source File: NormalSsaInsn.java From Box with Apache License 2.0 | 2 votes |
/** * 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; }
Example 6
Source File: NormalSsaInsn.java From Box with Apache License 2.0 | 2 votes |
/** * 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; }
Example 7
Source File: NormalSsaInsn.java From J2ME-Loader with Apache License 2.0 | 2 votes |
/** * 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; }
Example 8
Source File: NormalSsaInsn.java From buck with Apache License 2.0 | 2 votes |
/** * 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; }