List of usage examples for org.objectweb.asm.tree TableSwitchInsnNode getOpcode
public int getOpcode()
From source file:edu.mit.streamjit.util.bytecode.MethodResolver.java
License:Open Source License
private void interpret(TableSwitchInsnNode insn, FrameState frame, BBInfo block) { assert insn.getOpcode() == Opcodes.TABLESWITCH; ConstantFactory cf = module.constants(); SwitchInst inst = new SwitchInst(frame.stack.pop(), blockByInsn(insn.dflt).block); for (int i = insn.min; i <= insn.max; ++i) inst.put(cf.getConstant(i), blockByInsn(insn.labels.get(i - insn.min)).block); block.block.instructions().add(inst); }