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

Method visitTypeInsn

src/bsh/org/objectweb/asm/CodeWriter.java:645–657  ·  view source on GitHub ↗
(final int opcode, final String desc)

Source from the content-addressed store, hash-verified

643 }
644
645 public void visitTypeInsn (final int opcode, final String desc) {
646 if (computeMaxs && opcode == Constants.NEW) {
647 // updates current and max stack sizes only if opcode == NEW
648 // (stack size variation = 0 for ANEWARRAY, CHECKCAST, INSTANCEOF)
649 int size = stackSize + 1;
650 if (size > maxStackSize) {
651 maxStackSize = size;
652 }
653 stackSize = size;
654 }
655 // adds the instruction to the bytecode of the method
656 code.put12(opcode, cw.newClass(desc).index);
657 }
658
659 public void visitFieldInsn (
660 final int opcode,

Callers

nothing calls this directly

Calls 2

put12Method · 0.80
newClassMethod · 0.80

Tested by

no test coverage detected