congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.jf.dexlib2.iface.instruction.formats
Code IndexAdd Tabnine to your IDE (free)

How to use org.jf.dexlib2.iface.instruction.formats

Best Java code snippets using org.jf.dexlib2.iface.instruction.formats (Showing top 20 results out of 315)

origin: CalebFenton/simplify

private static int[] buildRegisters3rc(Instruction3rc instruction) {
  int registerCount = instruction.getRegisterCount();
  int start = instruction.getStartRegister();
  int end = start + registerCount;
  int[] registers = new int[registerCount];
  for (int i = start; i < end; i++) {
    registers[i - start] = i;
  }
  return registers;
}
origin: Sable/soot

/**
 * Check if register is referenced by this instruction.
 *
 */
private boolean isRegisterUsed(int register) {
 Instruction35c i = (Instruction35c) instruction;
 return register == i.getRegisterD() || register == i.getRegisterE() || register == i.getRegisterF()
   || register == i.getRegisterG() || register == i.getRegisterC();
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction25x newBuilderInstruction25x(@Nonnull Instruction25x instruction) {
  return new BuilderInstruction25x(
      instruction.getOpcode(),
      instruction.getParameterRegisterCount(),
      instruction.getRegisterFixedC(),
      instruction.getRegisterParameterD(),
      instruction.getRegisterParameterE(),
      instruction.getRegisterParameterF(),
      instruction.getRegisterParameterG());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction23x newBuilderInstruction23x(@Nonnull Instruction23x instruction) {
  return new BuilderInstruction23x(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB(),
      instruction.getRegisterC());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction22s newBuilderInstruction22s(@Nonnull Instruction22s instruction) {
  return new BuilderInstruction22s(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) {
  return new BuilderInstruction12x(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction22b newBuilderInstruction22b(@Nonnull Instruction22b instruction) {
  return new BuilderInstruction22b(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction32x newBuilderInstruction32x(@Nonnull Instruction32x instruction) {
  return new BuilderInstruction32x(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB());
}
origin: Tencent/tinker

@Nonnull
private BuilderArrayPayload newBuilderArrayPayload(@Nonnull ArrayPayload instruction) {
  return new BuilderArrayPayload(instruction.getElementWidth(), instruction.getArrayElements());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex,
                            @Nonnull Instruction21t instruction) {
  return new BuilderInstruction21t(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset()));
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction11n newBuilderInstruction11n(@Nonnull Instruction11n instruction) {
  return new BuilderInstruction11n(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction21lh newBuilderInstruction21lh(@Nonnull Instruction21lh instruction) {
  return new BuilderInstruction21lh(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getWideLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction22x newBuilderInstruction22x(@Nonnull Instruction22x instruction) {
  return new BuilderInstruction22x(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getRegisterB());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction21s newBuilderInstruction21s(@Nonnull Instruction21s instruction) {
  return new BuilderInstruction21s(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction31i newBuilderInstruction31i(@Nonnull Instruction31i instruction) {
  return new BuilderInstruction31i(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction51l newBuilderInstruction51l(@Nonnull Instruction51l instruction) {
  return new BuilderInstruction51l(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getWideLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction21ih newBuilderInstruction21ih(@Nonnull Instruction21ih instruction) {
  return new BuilderInstruction21ih(
      instruction.getOpcode(),
      instruction.getRegisterA(),
      instruction.getNarrowLiteral());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction11x newBuilderInstruction11x(@Nonnull Instruction11x instruction) {
  return new BuilderInstruction11x(
      instruction.getOpcode(),
      instruction.getRegisterA());
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction20t newBuilderInstruction20t(int codeAddress, int[] codeAddressToIndex,
                            @Nonnull Instruction20t instruction) {
  return new BuilderInstruction20t(
      instruction.getOpcode(),
      newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset()));
}
origin: Tencent/tinker

@Nonnull
private BuilderInstruction10x newBuilderInstruction10x(@Nonnull Instruction10x instruction) {
  return new BuilderInstruction10x(
      instruction.getOpcode());
}
org.jf.dexlib2.iface.instruction.formats

Most used classes

  • Instruction35c
  • Instruction21c
  • Instruction31t
  • ArrayPayload
  • Instruction22c
  • Instruction12x,
  • Instruction22t,
  • Instruction23x,
  • Instruction3rc,
  • SparseSwitchPayload,
  • Instruction11x,
  • Instruction31c,
  • Instruction20bc,
  • Instruction21t,
  • Instruction22s,
  • Instruction32x,
  • Instruction10t,
  • Instruction11n,
  • Instruction20t
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now