Tabnine Logo
MethodVisitor.visitIincInsn
Code IndexAdd Tabnine to your IDE (free)

How to use
visitIincInsn
method
in
org.objectweb.asm.MethodVisitor

Best Java code snippets using org.objectweb.asm.MethodVisitor.visitIincInsn (Showing top 20 results out of 423)

origin: cglib/cglib

public void visitIincInsn(int var, int increment) {
  mv1.visitIincInsn(var, increment);
  mv2.visitIincInsn(var, increment);
}

origin: org.ow2.asm/asm

/**
 * Visits an IINC instruction.
 *
 * @param var index of the local variable to be incremented.
 * @param increment amount to increment the local variable by.
 */
public void visitIincInsn(final int var, final int increment) {
 if (mv != null) {
  mv.visitIincInsn(var, increment);
 }
}
origin: cglib/cglib

public void visitIincInsn(int var, int increment) {
  mv1.visitIincInsn(var, increment);
  mv2.visitIincInsn(var, increment);
}

origin: cglib/cglib

public void iinc(Local local, int amount) {
  mv.visitIincInsn(local.getIndex(), amount);
}

origin: cglib/cglib

public void visitIincInsn(final int var, final int increment) {
  mv.visitIincInsn(remap(var, 1), increment);
}
origin: cglib/cglib

public void visitIincInsn(final int var, final int increment) {
  mv.visitIincInsn(remap(var, 1), increment);
}
origin: cglib/cglib

public void iinc(Local local, int amount) {
  mv.visitIincInsn(local.getIndex(), amount);
}

origin: Sable/soot

@Override
public void caseIncInst(IncInst i) {
 if (i.getUseBoxes().get(0).getValue() != i.getDefBoxes().get(0).getValue()) {
  throw new RuntimeException("iinc def and use boxes don't match");
 }
 if (i.getConstant() instanceof IntConstant) {
  mv.visitIincInsn(localToSlot.get(i.getLocal()), ((IntConstant) i.getConstant()).value);
 } else {
  throw new RuntimeException("Wrong constant type for increment!");
 }
}
origin: JCTools/JCTools

methodVisitor.visitIincInsn(3, 1);
origin: pxb1988/dex2jar

int increment = (Integer) ((Constant) v2.getOp2()).value;
if (increment >= Short.MIN_VALUE && increment <= Short.MAX_VALUE) {
  asm.visitIincInsn(i, increment);
  skipOrg = true;
int increment = (Integer) ((Constant) v2.getOp1()).value;
if (increment >= Short.MIN_VALUE && increment <= Short.MAX_VALUE) {
  asm.visitIincInsn(i, increment);
  skipOrg = true;
int increment = -(Integer) ((Constant) v2.getOp2()).value;
if (increment >= Short.MIN_VALUE && increment <= Short.MAX_VALUE) {
  asm.visitIincInsn(i, increment);
  skipOrg = true;
origin: glowroot/glowroot

@Override
public void visitIincInsn(int var, int increment) {
  super.visitIincInsn(var, increment);
  skipNextFrame = false;
}
origin: kilim/kilim

int var = parseInt(words[0]);
int increment = parseInt(words[1]);
mv.visitIincInsn(var, increment);
break;
origin: org.ow2.asm/asm

 opcode = classFileBuffer[currentOffset + 1] & 0xFF;
 if (opcode == Opcodes.IINC) {
  methodVisitor.visitIincInsn(
    readUnsignedShort(currentOffset + 2), readShort(currentOffset + 4));
  currentOffset += 6;
 break;
case Constants.IINC:
 methodVisitor.visitIincInsn(
   classFileBuffer[currentOffset + 1] & 0xFF, classFileBuffer[currentOffset + 2]);
 currentOffset += 3;
origin: hcoles/pitest

@Test
public void shouldForwardVisitIincInsnToChild() {
 getTesteeVisitor().visitIincInsn(1, 2);
 verify(this.mv).visitIincInsn(1, 2);
}
origin: org.ow2.asm/asm-commons

@Override
public void visitIincInsn(final int var, final int increment) {
 if (var > 255 || increment > 127 || increment < -128) {
  minSize += 6;
  maxSize += 6;
 } else {
  minSize += 3;
  maxSize += 3;
 }
 super.visitIincInsn(var, increment);
}
origin: org.ow2.asm/asm-commons

/**
 * Generates the instruction to increment the given local variable.
 *
 * @param local the local variable to be incremented.
 * @param amount the amount by which the local variable must be incremented.
 */
public void iinc(final int local, final int amount) {
 mv.visitIincInsn(local, amount);
}
origin: org.ow2.asm/asm-commons

@Override
public void visitIincInsn(final int var, final int increment) {
 super.visitIincInsn(var, increment);
 maxLocals = Math.max(maxLocals, var + 1);
 execute(Opcodes.IINC, var, null);
}
origin: org.ow2.asm/asm-tree

@Override
public void accept(final MethodVisitor methodVisitor) {
 methodVisitor.visitIincInsn(var, incr);
 acceptAnnotations(methodVisitor);
}
origin: nailperry-zd/LazierTracker

@Override
public void visitIincInsn(int var, int increment) {
  Log.logEach("visitIincInsn", var, increment);
  super.visitIincInsn(var, increment);
}
origin: net.sourceforge.cobertura/cobertura

@Override
public void visitIincInsn(int arg0, int arg1) {
  super.visitIincInsn(arg0, arg1);
  appendToBacklog(new IincInsnNode(arg0, arg1));
}
org.objectweb.asmMethodVisitorvisitIincInsn

Javadoc

Visits an IINC instruction.

Popular methods of MethodVisitor

  • visitMethodInsn
    Visits a method instruction. A method instruction is an instruction that invokes a method.
  • visitInsn
    Visits a zero operand instruction.
  • visitVarInsn
    Visits a local variable instruction. A local variable instruction is an instruction that loads or st
  • visitMaxs
    Visits the maximum stack size and the maximum number of local variables of the method.
  • visitEnd
    Visits the end of the method. This method, which is the last one to be called, is used to inform the
  • visitCode
    Starts the visit of the method's code, if any (i.e. non abstract method).
  • visitFieldInsn
    Visits a field instruction. A field instruction is an instruction that loads or stores the value of
  • visitTypeInsn
    Visits a type instruction. A type instruction is an instruction that takes the internal name of a cl
  • visitLabel
    Visits a label. A label designates the instruction that will be visited just after it.
  • visitLdcInsn
    Visits a LDC instruction. Note that new constant types may be added in future versions of the Java V
  • visitJumpInsn
    Visits a jump instruction. A jump instruction is an instruction that may jump to another instruction
  • visitIntInsn
    Visits an instruction with a single int operand.
  • visitJumpInsn,
  • visitIntInsn,
  • visitLocalVariable,
  • visitAnnotation,
  • visitTryCatchBlock,
  • visitLineNumber,
  • visitFrame,
  • visitTableSwitchInsn,
  • visitParameterAnnotation

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Path (java.nio.file)
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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