Examples of wrapInstruction()


Examples of jadx.core.dex.instructions.args.InsnArg.wrapInstruction()

      for (int j = 0; j < inv.getArgsCount(); j++) {
        InsnArg arg = inv.getArg(j);
        if (arg.isLiteral()) {
          FieldNode f = parentClass.getConstFieldByLiteralArg((LiteralArg) arg);
          if (f != null) {
            arg.wrapInstruction(new IndexInsnNode(InsnType.SGET, f.getFieldInfo(), 0));
          }
        }
      }
    }
  }
View Full Code Here

Examples of jadx.core.dex.instructions.args.LiteralArg.wrapInstruction()

          case RETURN:
            if (insn.getArgsCount() > 0 && insn.getArg(0).isLiteral()) {
              LiteralArg arg = (LiteralArg) insn.getArg(0);
              FieldNode f = parentClass.getConstFieldByLiteralArg(arg);
              if (f != null) {
                arg.wrapInstruction(new IndexInsnNode(InsnType.SGET, f.getFieldInfo(), 0));
              }
            }
            break;

          default:
View Full Code Here

Examples of jadx.core.dex.instructions.args.RegisterArg.wrapInstruction()

          // another block
          BlockNode assignBlock = BlockUtils.getBlockByInsn(mth, assignInsn);
          if (assignBlock != null
              && assignInsn != arg.getParentInsn()
              && canMoveBetweenBlocks(assignInsn, assignBlock, block, argsInfo.getInsn())) {
            arg.wrapInstruction(assignInsn);
            InsnList.remove(assignBlock, assignInsn);
          }
        }
      }
    }
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.