public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { // Mark the variable. variableUsed[variableInstruction.variableIndex] = true; // Account for Category 2 instructions, which take up two entries. if (variableInstruction.isCategory2()) { variableUsed[variableInstruction.variableIndex + 1] = true; } } }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { int variableSize = variableInstruction.variableIndex + 1; if (variableInstruction.isCategory2()) { variableSize++; } if (codeAttribute.u2maxLocals < variableSize) { codeAttribute.u2maxLocals = variableSize; if (DEBUG) { System.out.println("Max locals: "+codeAttribute.u2maxLocals+" <- "+variableInstruction.toString(offset)); } } } }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { int variableSize = variableInstruction.variableIndex + 1; if (variableInstruction.isCategory2()) { variableSize++; } if (codeAttribute.u2maxLocals < variableSize) { codeAttribute.u2maxLocals = variableSize; if (DEBUG) { System.out.println(" Max locals: "+codeAttribute.u2maxLocals+" <- "+variableInstruction.toString(offset)); } } } }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { int variableSize = variableInstruction.variableIndex + 1; if (variableInstruction.isCategory2()) { variableSize++; } if (codeAttribute.u2maxLocals < variableSize) { codeAttribute.u2maxLocals = variableSize; if (DEBUG) { System.out.println(" Max locals: "+codeAttribute.u2maxLocals+" <- "+variableInstruction.toString(offset)); } } } }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { int variableSize = variableInstruction.variableIndex + 1; if (variableInstruction.isCategory2()) { variableSize++; } if (codeAttribute.u2maxLocals < variableSize) { codeAttribute.u2maxLocals = variableSize; if (DEBUG) { System.out.println(" Max locals: "+codeAttribute.u2maxLocals+" <- "+variableInstruction.toString(offset)); } } } }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { if (partialEvaluator.isTraced(offset) && variableInstruction.isLoad()) { int parameterIndex = variableInstruction.variableIndex; if (parameterIndex < codeAttribute.u2maxLocals) { Value producer = partialEvaluator.getVariablesBefore(offset).getProducerValue(parameterIndex); if (producer != null && producer.instructionOffsetValue().contains(PartialEvaluator.AT_METHOD_ENTRY)) { // Mark the variable. markParameterUsed(method, parameterIndex); // Account for Category 2 instructions, which take up two entries. if (variableInstruction.isCategory2()) { markParameterUsed(method, parameterIndex + 1); } } } } }