MCPcopy Create free account
hub / github.com/beanshell/beanshell / visitIincInsn

Method visitIincInsn

src/bsh/org/objectweb/asm/CodeWriter.java:851–865  ·  view source on GitHub ↗
(final int var, final int increment)

Source from the content-addressed store, hash-verified

849 }
850
851 public void visitIincInsn (final int var, final int increment) {
852 if (computeMaxs) {
853 // updates max locals only (no stack change)
854 int n = var + 1;
855 if (n > maxLocals) {
856 maxLocals = n;
857 }
858 }
859 // adds the instruction to the bytecode of the method
860 if ((var > 255) || (increment > 127) || (increment < -128)) {
861 code.put1(196 /*WIDE*/).put12(Constants.IINC, var).put2(increment);
862 } else {
863 code.put1(Constants.IINC).put11(var, increment);
864 }
865 }
866
867 public void visitTableSwitchInsn (
868 final int min,

Callers

nothing calls this directly

Calls 4

put2Method · 0.80
put12Method · 0.80
put1Method · 0.80
put11Method · 0.80

Tested by

no test coverage detected