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

Method visitLabel

src/bsh/org/objectweb/asm/CodeWriter.java:800–822  ·  view source on GitHub ↗
(final Label label)

Source from the content-addressed store, hash-verified

798 }
799
800 public void visitLabel (final Label label) {
801 if (CHECK) {
802 if (label.owner == null) {
803 label.owner = this;
804 } else if (label.owner != this) {
805 throw new IllegalArgumentException();
806 }
807 }
808 if (computeMaxs) {
809 if (currentBlock != null) {
810 // ends current block (with one new successor)
811 currentBlock.maxStackSize = maxStackSize;
812 addSuccessor(stackSize, label);
813 }
814 // begins a new current block,
815 // resets the relative current and max stack sizes
816 currentBlock = label;
817 stackSize = 0;
818 maxStackSize = 0;
819 }
820 // resolves previous forward references to label, if any
821 resize |= label.resolve(this, code.length, code.data);
822 }
823
824 public void visitLdcInsn (final Object cst) {
825 Item i = cw.newCst(cst);

Callers

nothing calls this directly

Calls 2

addSuccessorMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected