Examples of DecodedInstruction


Examples of com.android.dx.io.instructions.DecodedInstruction

  }

  public InsnNode[] process() throws DecodeException {
    InsnNode[] instructions = new InsnNode[insnArr.length];
    for (int i = 0; i < insnArr.length; i++) {
      DecodedInstruction rawInsn = insnArr[i];
      if (rawInsn != null) {
        InsnNode insn = decode(rawInsn, i);
        if (insn != null) {
          insn.setOffset(i);
          insn.setInsnHashCode(calcHashCode(rawInsn));
View Full Code Here

Examples of com.android.dx.io.instructions.DecodedInstruction

    throw new DecodeException("Unknown instruction: " + OpcodeInfo.getName(insn.getOpcode()));
  }

  private InsnNode decodeSwitch(DecodedInstruction insn, int offset, boolean packed) {
    int payloadOffset = insn.getTarget();
    DecodedInstruction payload = insnArr[payloadOffset];
    Object[] keys;
    int[] targets;
    if (packed) {
      PackedSwitchPayloadDecodedInstruction ps = (PackedSwitchPayloadDecodedInstruction) payload;
      targets = ps.getTargets();
View Full Code Here

Examples of com.android.dx.io.instructions.DecodedInstruction

    int nextOffset = getNextInsnOffset(insnArr, offset);
    return new SwitchNode(InsnArg.reg(insn, 0, ArgType.NARROW), keys, targets, nextOffset);
  }

  private InsnNode fillArray(DecodedInstruction insn) {
    DecodedInstruction payload = insnArr[insn.getTarget()];
    return new FillArrayNode(insn.getA(), (FillArrayDataPayloadDecodedInstruction) payload);
  }
View Full Code Here

Examples of com.android.dx.io.instructions.DecodedInstruction

  }

  private int getMoveResultRegister(DecodedInstruction[] insnArr, int offset) {
    int nextOffset = getNextInsnOffset(insnArr, offset);
    if (nextOffset >= 0) {
      DecodedInstruction next = insnArr[nextOffset];
      int opc = next.getOpcode();
      if (opc == Opcodes.MOVE_RESULT
          || opc == Opcodes.MOVE_RESULT_WIDE
          || opc == Opcodes.MOVE_RESULT_OBJECT) {
        return next.getA();
      }
    }
    return -1;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.