/external/proguard/src/proguard/optimize/evaluation/ |
D | LivenessAnalyzer.java | 95 public boolean isAliveBefore(int instructionOffset, int variableIndex) in isAliveBefore() argument 97 return variableIndex >= MAX_VARIABLES_SIZE || in isAliveBefore() 98 (isAliveBefore[instructionOffset] & (1L << variableIndex)) != 0; in isAliveBefore() 106 public void setAliveBefore(int instructionOffset, int variableIndex, boolean alive) in setAliveBefore() argument 108 if (variableIndex < MAX_VARIABLES_SIZE) in setAliveBefore() 112 isAliveBefore[instructionOffset] |= 1L << variableIndex; in setAliveBefore() 116 isAliveBefore[instructionOffset] &= ~(1L << variableIndex); in setAliveBefore() 126 public boolean isAliveAfter(int instructionOffset, int variableIndex) in isAliveAfter() argument 128 return variableIndex >= MAX_VARIABLES_SIZE || in isAliveAfter() 129 (isAliveAfter[instructionOffset] & (1L << variableIndex)) != 0; in isAliveAfter() [all …]
|
D | EvaluationSimplifier.java | 244 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local 253 replaceIntegerPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction() 261 replaceLongPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction() 269 replaceFloatPushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction() 277 replaceDoublePushInstruction(clazz, offset, variableInstruction, variableIndex); in visitVariableInstruction() 492 for (int variableIndex = 0; variableIndex < maxVariableIndex; variableIndex++) in replaceIntegerPushInstruction() 494 if (pushedValue.equals(variables.load(variableIndex))) in replaceIntegerPushInstruction() 500 variableIndex); in replaceIntegerPushInstruction() 562 for (int variableIndex = 0; variableIndex < maxVariableIndex; variableIndex++) in replaceLongPushInstruction() 565 if (pushedValue.equals(variables.load(variableIndex)) && in replaceLongPushInstruction() [all …]
|
D | SimpleEnumUseSimplifier.java | 195 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local 212 variableIndex)); in visitVariableInstruction() 219 variableIndex); in visitVariableInstruction() 237 variableIndex)); in visitVariableInstruction() 797 int variableIndex) in replaceNullVariableProducers() argument 800 …partialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOff… in replaceNullVariableProducers() 807 …partialEvaluator.getVariablesAfter(producerOffset).getValue(variableIndex).referenceValue().isNull… in replaceNullVariableProducers() 812 … new VariableInstruction(InstructionConstants.OP_ASTORE, variableIndex), in replaceNullVariableProducers() 813 … new VariableInstruction(InstructionConstants.OP_ISTORE, variableIndex)); in replaceNullVariableProducers()
|
D | SimpleEnumUseChecker.java | 509 for (int variableIndex = 0; variableIndex < variablesSize; variableIndex++) in checkMixedVariablesBefore() 512 Value variable = variablesBefore.getValue(variableIndex); in checkMixedVariablesBefore() 518 variablesBefore.getProducerValue(variableIndex).instructionOffsetValue(); in checkMixedVariablesBefore() 540 … partialEvaluator.getVariablesAfter(producerOffset).getValue(variableIndex).referenceValue(); in checkMixedVariablesBefore() 549 markStoredComplexEnumType(producerOffset, variableIndex); in checkMixedVariablesBefore() 740 private void markStoredComplexEnumType(int offset, int variableIndex) in markStoredComplexEnumType() argument 743 partialEvaluator.getVariablesAfter(offset).getValue(variableIndex).referenceValue(); in markStoredComplexEnumType()
|
D | VariableOptimizer.java | 319 private int firstLiveness(int startOffset, int endOffset, int variableIndex) in firstLiveness() argument 324 livenessAnalyzer.isAliveBefore(offset, variableIndex)) in firstLiveness() 338 private int lastLiveness(int startOffset, int endOffset, int variableIndex) in lastLiveness() argument 346 if (livenessAnalyzer.isAliveBefore(offset, variableIndex)) in lastLiveness()
|
D | EvaluationShrinker.java | 645 markVariableProducers(offset, variableInstruction.variableIndex); in visitVariableInstruction() 704 markVariableInitializersBefore(offset, variableInstruction.variableIndex); in visitVariableInstruction() 1441 int variableIndex) in markVariableProducers() argument 1444 …partialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOff… in markVariableProducers() 1469 int variableIndex) in markVariableInitializersBefore() argument 1475 …ePartialEvaluator.getVariablesBefore(consumerOffset).getProducerValue(variableIndex).instructionOf… in markVariableInitializersBefore() 1486 markVariableInitializersAfter(producerOffset, variableIndex); in markVariableInitializersBefore() 1500 int variableIndex) in markVariableInitializersAfter() argument 1506 if (isVariableInitialization(producerOffset, variableIndex)) in markVariableInitializersAfter() 1509 if (DEBUG) System.out.print(" Marking initialization of v"+variableIndex+" at "); in markVariableInitializersAfter() [all …]
|
/external/proguard/src/proguard/classfile/instruction/ |
D | VariableInstruction.java | 36 public int variableIndex; field in VariableInstruction 59 int variableIndex) in VariableInstruction() argument 61 this(opcode, variableIndex, 0); in VariableInstruction() 66 int variableIndex, in VariableInstruction() argument 70 this.variableIndex = variableIndex; in VariableInstruction() 85 this.variableIndex = variableInstruction.variableIndex; in copy() 224 if (variableIndex <= 3) in shrink() 228 …ructionConstants.OP_ILOAD: opcode = (byte)(InstructionConstants.OP_ILOAD_0 + variableIndex); break; in shrink() 229 …ructionConstants.OP_LLOAD: opcode = (byte)(InstructionConstants.OP_LLOAD_0 + variableIndex); break; in shrink() 230 …ructionConstants.OP_FLOAD: opcode = (byte)(InstructionConstants.OP_FLOAD_0 + variableIndex); break; in shrink() [all …]
|
/external/proguard/src/proguard/optimize/peephole/ |
D | VariableShrinker.java | 104 for (int variableIndex = parameterSize; variableIndex < maxLocals; variableIndex++) in visitCodeAttribute() 107 if (!variableUsageMarker.isVariableUsed(variableIndex)) in visitCodeAttribute() 111 System.out.println(" Deleting local variable #"+variableIndex); in visitCodeAttribute() 115 variableEditor.deleteVariable(variableIndex); in visitCodeAttribute()
|
/external/proguard/src/proguard/optimize/ |
D | ParameterShrinker.java | 138 for (int variableIndex = oldParameterSize; variableIndex < maxLocals; variableIndex++) in visitCodeAttribute() 140 variableMap[variableIndex] = variableIndex; in visitCodeAttribute()
|
/external/proguard/src/proguard/optimize/info/ |
D | VariableUsageMarker.java | 49 public boolean isVariableUsed(int variableIndex) in isVariableUsed() argument 51 return variableUsed[variableIndex]; in isVariableUsed() 88 variableUsed[variableInstruction.variableIndex] = true; in visitVariableInstruction() 93 variableUsed[variableInstruction.variableIndex + 1] = true; in visitVariableInstruction()
|
D | ParameterUsageMarker.java | 193 int parameterIndex = variableInstruction.variableIndex; in visitVariableInstruction() 243 public static void markParameterUsed(Method method, int variableIndex) in markParameterUsed() argument 248 info.setParameterUsed(variableIndex); in markParameterUsed() 269 public static boolean isParameterUsed(Method method, int variableIndex) in isParameterUsed() argument 273 info.isParameterUsed(variableIndex); in isParameterUsed()
|
/external/proguard/src/proguard/evaluation/ |
D | Processor.java | 653 int variableIndex = variableInstruction.variableIndex; in visitVariableInstruction() local 662 stack.push(variables.iload(variableIndex)); in visitVariableInstruction() 670 stack.push(variables.lload(variableIndex)); in visitVariableInstruction() 678 stack.push(variables.fload(variableIndex)); in visitVariableInstruction() 686 stack.push(variables.dload(variableIndex)); in visitVariableInstruction() 694 stack.push(variables.aload(variableIndex)); in visitVariableInstruction() 702 variables.store(variableIndex, stack.ipop()); in visitVariableInstruction() 710 variables.store(variableIndex, stack.lpop()); in visitVariableInstruction() 718 variables.store(variableIndex, stack.fpop()); in visitVariableInstruction() 726 variables.store(variableIndex, stack.dpop()); in visitVariableInstruction() [all …]
|
D | BasicInvocationUnit.java | 84 int variableIndex = 0; in enterMethod() local 97 variables.store(variableIndex++, value); in enterMethod() 121 variables.store(variableIndex++, value); in enterMethod() 126 variableIndex++; in enterMethod()
|
/external/proguard/src/proguard/classfile/attribute/preverification/ |
D | FloatType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …itor.visitVariablesFloatType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | UninitializedThisType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …riablesUninitializedThisType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | IntegerType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …or.visitVariablesIntegerType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | DoubleType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …tor.visitVariablesDoubleType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | LongType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …sitor.visitVariablesLongType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | NullType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …sitor.visitVariablesNullType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | TopType.java | 54 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 56 …isitor.visitVariablesTopType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | UninitializedType.java | 74 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 76 …itVariablesUninitializedType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
D | ObjectType.java | 75 …ethod method, CodeAttribute codeAttribute, int instructionOffset, int variableIndex, VerificationT… in variablesAccept() argument 77 …tor.visitVariablesObjectType(clazz, method, codeAttribute, instructionOffset, variableIndex, this); in variablesAccept()
|
/external/proguard/src/proguard/classfile/editor/ |
D | VariableEditor.java | 75 public void deleteVariable(int variableIndex) in deleteVariable() argument 77 deleted[variableIndex] = true; in deleteVariable()
|
D | VariableRemapper.java | 190 int oldVariableIndex = variableInstruction.variableIndex; in visitVariableInstruction() 210 private int remapVariable(int variableIndex) in remapVariable() argument 212 return variableMap[variableIndex]; in remapVariable()
|
D | InstructionWriter.java | 137 variableInstruction.variableIndex, in visitVariableInstruction() 148 variableInstruction.variableIndex = 0; in visitVariableInstruction()
|