| 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, |