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

Method visitInsn

src/bsh/org/objectweb/asm/CodeWriter.java:560–580  ·  view source on GitHub ↗
(final int opcode)

Source from the content-addressed store, hash-verified

558 // --------------------------------------------------------------------------
559
560 public void visitInsn (final int opcode) {
561 if (computeMaxs) {
562 // updates current and max stack sizes
563 int size = stackSize + SIZE[opcode];
564 if (size > maxStackSize) {
565 maxStackSize = size;
566 }
567 stackSize = size;
568 // if opcode == ATHROW or xRETURN, ends current block (no successor)
569 if ((opcode >= Constants.IRETURN && opcode <= Constants.RETURN) ||
570 opcode == Constants.ATHROW)
571 {
572 if (currentBlock != null) {
573 currentBlock.maxStackSize = maxStackSize;
574 currentBlock = null;
575 }
576 }
577 }
578 // adds the instruction to the bytecode of the method
579 code.put1(opcode);
580 }
581
582 public void visitIntInsn (final int opcode, final int operand) {
583 if (computeMaxs && opcode != Constants.NEWARRAY) {

Callers

nothing calls this directly

Calls 1

put1Method · 0.80

Tested by

no test coverage detected