Searched refs:variableIndex (Results 1 - 25 of 31) sorted by relevance

12

/external/proguard/src/proguard/optimize/evaluation/
H A DLivenessAnalyzer.java85 public boolean isAliveBefore(int instructionOffset, int variableIndex) argument
87 return variableIndex >= MAX_VARIABLES_SIZE ||
88 (isAliveBefore[instructionOffset] & (1L << variableIndex)) != 0;
96 public void setAliveBefore(int instructionOffset, int variableIndex, boolean alive) argument
98 if (variableIndex < MAX_VARIABLES_SIZE)
102 isAliveBefore[instructionOffset] |= 1L << variableIndex;
106 isAliveBefore[instructionOffset] &= ~(1L << variableIndex);
116 public boolean isAliveAfter(int instructionOffset, int variableIndex) argument
118 return variableIndex >= MAX_VARIABLES_SIZE ||
119 (isAliveAfter[instructionOffset] & (1L << variableIndex)) !
127 setAliveAfter(int instructionOffset, int variableIndex, boolean alive) argument
147 isCategory2(int instructionOffset, int variableIndex) argument
158 setCategory2(int instructionOffset, int variableIndex, boolean category2) argument
[all...]
H A DEvaluationSimplifier.java242 int variableIndex = variableInstruction.variableIndex;
251 replaceIntegerPushInstruction(clazz, offset, variableInstruction, variableIndex);
259 replaceLongPushInstruction(clazz, offset, variableInstruction, variableIndex);
267 replaceFloatPushInstruction(clazz, offset, variableInstruction, variableIndex);
275 replaceDoublePushInstruction(clazz, offset, variableInstruction, variableIndex);
453 for (int variableIndex = 0; variableIndex < maxVariableIndex; variableIndex++)
455 if (pushedValue.equals(variables.load(variableIndex)))
712 replaceVariablePushInstruction(Clazz clazz, int offset, Instruction instruction, byte replacementOpcode, int variableIndex) argument
[all...]
H A DEvaluationShrinker.java281 int variableIndex = partialEvaluator.initializedVariable(offset);
282 if (variableIndex >= 0 &&
287 variableIndex))
620 markVariableProducers(offset, variableInstruction.variableIndex);
831 * @param variableIndex the index of the variable to be marked.
834 int variableIndex)
840 markVariableProducers(tracedVariables.getProducerValue(variableIndex).instructionOffsetValue(),
841 variableIndex);
848 * @param variableIndex the index of the variable to be marked.
851 int variableIndex)
833 markVariableProducers(int consumerOffset, int variableIndex) argument
850 markVariableProducers(InstructionOffsetValue producerOffsets, int variableIndex) argument
1676 isVariableInitializationNecessary(Clazz clazz, Method method, CodeAttribute codeAttribute, int initializationOffset, int variableIndex) argument
1733 markVariableAfter(int instructionOffset, int variableIndex) argument
1754 isVariableNecessaryAfterAny(int startOffset, int endOffset, int variableIndex) argument
1774 isVariableNecessaryAfterAny(InstructionOffsetValue instructionOffsetValue, int variableIndex) argument
1792 isVariableNecessaryAfter(int instructionOffset, int variableIndex) argument
[all...]
/external/proguard/src/proguard/classfile/instruction/
H A DVariableInstruction.java36 public int variableIndex; field in class:VariableInstruction
59 int variableIndex)
61 this(opcode, variableIndex, 0);
66 int variableIndex,
70 this.variableIndex = variableIndex;
85 this.variableIndex = variableInstruction.variableIndex;
224 if (variableIndex <= 3)
228 case InstructionConstants.OP_ILOAD: opcode = (byte)(InstructionConstants.OP_ILOAD_0 + variableIndex); brea
58 VariableInstruction(byte opcode, int variableIndex) argument
65 VariableInstruction(byte opcode, int variableIndex, int constant) argument
[all...]
/external/proguard/src/proguard/optimize/peephole/
H A DVariableShrinker.java104 for (int variableIndex = parameterSize; variableIndex < maxLocals; variableIndex++)
107 if (!variableUsageMarker.isVariableUsed(variableIndex))
111 System.out.println(" Deleting local variable #"+variableIndex);
115 variableEditor.deleteVariable(variableIndex);
/external/proguard/src/proguard/optimize/info/
H A DVariableUsageMarker.java47 public boolean isVariableUsed(int variableIndex) argument
49 return variableUsed[variableIndex];
87 variableUsed[variableInstruction.variableIndex] = true;
92 variableUsed[variableInstruction.variableIndex + 1] = true;
H A DParameterUsageMarker.java193 int parameterIndex = variableInstruction.variableIndex;
243 public static void markParameterUsed(Method method, int variableIndex) argument
248 info.setParameterUsed(variableIndex);
269 public static boolean isParameterUsed(Method method, int variableIndex) argument
273 info.isParameterUsed(variableIndex);
/external/proguard/src/proguard/optimize/
H A DParameterShrinker.java134 for (int variableIndex = oldParameterSize; variableIndex < maxLocals; variableIndex++)
136 variableMap[variableIndex] = variableIndex;
/external/proguard/src/proguard/classfile/attribute/preverification/
H A DDoubleType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesDoubleType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DFloatType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesFloatType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DIntegerType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesIntegerType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DLongType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesLongType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DNullType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesNullType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DTopType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesTopType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DUninitializedThisType.java54 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
56 verificationTypeVisitor.visitVariablesUninitializedThisType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DObjectType.java75 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
77 verificationTypeVisitor.visitVariablesObjectType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DUninitializedType.java74 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor) argument
76 verificationTypeVisitor.visitVariablesUninitializedType(clazz, method, codeAttribute, instructionOffset, variableIndex, this);
H A DVerificationType.java74 public abstract void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationTypeVisitor verificationTypeVisitor); argument
/external/proguard/src/proguard/classfile/editor/
H A DVariableEditor.java72 * @param variableIndex the index of the variable to be deleted.
74 public void deleteVariable(int variableIndex) argument
76 deleted[variableIndex] = true;
H A DVariableRemapper.java129 int oldVariableIndex = variableInstruction.variableIndex;
149 private int remapVariable(int variableIndex) argument
151 return variableMap[variableIndex];
H A DVariableSizeUpdater.java82 int variableSize = variableInstruction.variableIndex + 1;
H A DInstructionWriter.java111 variableInstruction.variableIndex,
117 variableInstruction.variableIndex = 0;
/external/proguard/src/proguard/evaluation/
H A DBasicInvocationUnit.java84 int variableIndex = 0;
97 variables.store(variableIndex++, value);
121 variables.store(variableIndex++, value);
126 variableIndex++;
H A DProcessor.java636 int variableIndex = variableInstruction.variableIndex;
645 stack.push(variables.iload(variableIndex));
653 stack.push(variables.lload(variableIndex));
661 stack.push(variables.fload(variableIndex));
669 stack.push(variables.dload(variableIndex));
677 stack.push(variables.aload(variableIndex));
685 variables.store(variableIndex, stack.ipop());
693 variables.store(variableIndex, stack.lpop());
701 variables.store(variableIndex, stac
[all...]
/external/proguard/src/proguard/classfile/util/
H A DInstructionSequenceMatcher.java212 matchingArguments(variableInstruction.variableIndex,
213 ((VariableInstruction)patternInstruction).variableIndex) &&

Completed in 315 milliseconds

12