@Override public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) { assert uses == null || uses.length == 1; return insts.SwitchInstruction(iindex, uses == null ? val : uses[0], defaultLabel, casesAndLabels); }
@Override public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) { assert uses == null || uses.length == 1; return insts.SwitchInstruction(iindex, uses == null ? val : uses[0], defaultLabel, casesAndLabels); }
/** * @see com.ibm.wala.shrikeBT.IInstruction.Visitor#visitSwitch(SwitchInstruction) */ @Override public void visitSwitch(com.ibm.wala.shrikeBT.SwitchInstruction instruction) { int val = workingState.pop(); emitInstruction(insts.SwitchInstruction(getCurrentInstructionIndex(), val, instruction.getDefaultLabel(), instruction.getCasesAndLabels())); }
/** * @see com.ibm.wala.shrikeBT.IInstruction.Visitor#visitSwitch(SwitchInstruction) */ @Override public void visitSwitch(com.ibm.wala.shrikeBT.SwitchInstruction instruction) { int val = workingState.pop(); emitInstruction(insts.SwitchInstruction(getCurrentInstructionIndex(), val, instruction.getDefaultLabel(), instruction.getCasesAndLabels())); }
/** * @see com.ibm.wala.shrikeBT.IInstruction.Visitor#visitSwitch(SwitchInstruction) */ @Override public void visitSwitch(Switch instruction) { int val = workingState.getLocal(instruction.regA); // int val = workingState.pop(); // TODO: figure out if the switch offset should refer to a pc offset or an instruction id or what emitInstruction(insts.SwitchInstruction(getCurrentInstructionIndex(), val, instruction.getDefaultLabel(), instruction.getCasesAndLabels())); }
/** * @see com.ibm.wala.shrikeBT.IInstruction.Visitor#visitSwitch(SwitchInstruction) */ @Override public void visitSwitch(Switch instruction) { int val = workingState.getLocal(instruction.regA); // int val = workingState.pop(); // TODO: figure out if the switch offset should refer to a pc offset or an instruction id or what emitInstruction(insts.SwitchInstruction(getCurrentInstructionIndex(), val, instruction.getDefaultLabel(), instruction.getCasesAndLabels())); }
insts.SwitchInstruction(methodSummary.getNumberOfStatements(), switchValue, defLabel, casesAndLabels));
context.cfg().addInstruction(insts.SwitchInstruction(currentInstruction, v, defaultBlock, casesAndLabels)); context.cfg().noteOperands(currentInstruction, context.getSourceMap().getPosition(switchValue)); context.cfg().addPreNode(n, context.getUnwindState());
context.cfg().addInstruction(insts.SwitchInstruction(currentInstruction, v, defaultBlock, casesAndLabels)); context.cfg().noteOperands(currentInstruction, context.getSourceMap().getPosition(switchValue)); context.cfg().addPreNode(n, context.getUnwindState());