/external/proguard/src/proguard/optimize/evaluation/ |
D | PartialEvaluator.java | 345 public boolean isTraced(int instructionOffset) in isTraced() argument 347 return evaluationCounts[instructionOffset] > 0; in isTraced() 354 public boolean isInstruction(int instructionOffset) in isInstruction() argument 356 return branchTargetFinder.isInstruction(instructionOffset); in isInstruction() 364 public boolean isBranchOrExceptionTarget(int instructionOffset) in isBranchOrExceptionTarget() argument 366 return branchTargetFinder.isBranchTarget(instructionOffset) || in isBranchOrExceptionTarget() 367 branchTargetFinder.isExceptionHandler(instructionOffset); in isBranchOrExceptionTarget() 375 public boolean isSubroutineStart(int instructionOffset) in isSubroutineStart() argument 377 return branchTargetFinder.isSubroutineStart(instructionOffset); in isSubroutineStart() 385 public boolean isSubroutineInvocation(int instructionOffset) in isSubroutineInvocation() argument [all …]
|
D | EvaluationShrinker.java | 1050 private int fixDupSwap(int instructionOffset, in fixDupSwap() argument 1057 … case InstructionConstants.OP_DUP: return fixedDup (instructionOffset, topBefore, topAfter); in fixDupSwap() 1058 … case InstructionConstants.OP_DUP_X1: return fixedDup_x1 (instructionOffset, topBefore, topAfter); in fixDupSwap() 1059 … case InstructionConstants.OP_DUP_X2: return fixedDup_x2 (instructionOffset, topBefore, topAfter); in fixDupSwap() 1060 … case InstructionConstants.OP_DUP2: return fixedDup2 (instructionOffset, topBefore, topAfter); in fixDupSwap() 1061 … case InstructionConstants.OP_DUP2_X1: return fixedDup2_x1(instructionOffset, topBefore, topAfter); in fixDupSwap() 1062 … case InstructionConstants.OP_DUP2_X2: return fixedDup2_x2(instructionOffset, topBefore, topAfter); in fixDupSwap() 1063 … case InstructionConstants.OP_SWAP: return fixedSwap (instructionOffset, topBefore, topAfter); in fixDupSwap() 1069 private int fixedDup(int instructionOffset, int topBefore, int topAfter) in fixedDup() argument 1071 … boolean stackEntryPresent0 = isStackEntryPresentBefore(instructionOffset, topBefore - 0); in fixedDup() [all …]
|
D | LivenessAnalyzer.java | 85 public boolean isTraced(int instructionOffset) in isTraced() argument 87 return partialEvaluator.isTraced(instructionOffset); in isTraced() 95 public boolean isAliveBefore(int instructionOffset, int variableIndex) in isAliveBefore() argument 98 (isAliveBefore[instructionOffset] & (1L << variableIndex)) != 0; in isAliveBefore() 106 public void setAliveBefore(int instructionOffset, int variableIndex, boolean alive) in setAliveBefore() argument 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 129 (isAliveAfter[instructionOffset] & (1L << variableIndex)) != 0; in isAliveAfter() 137 public void setAliveAfter(int instructionOffset, int variableIndex, boolean alive) in setAliveAfter() argument [all …]
|
D | EvaluationSimplifier.java | 842 int branchOffset = branchTargets.instructionOffset(0) - offset; in replaceBranchInstruction() 876 int producerOffset = producerOffsets.instructionOffset(0); in replaceSimpleEnumSwitchInstruction() 963 int producerOffset = producerOffsets.instructionOffset(0); in replaceSimpleEnumSwitchInstruction() 1048 branchTargets.instructionOffset(branchTargets.instructionOffsetCount()-1) - in cleanUpSwitchInstruction()
|
D | SimpleEnumUseSimplifier.java | 773 int producerOffset = producerOffsets.instructionOffset(index); in replaceNullStackEntryProducers() 804 int producerOffset = producerOffsets.instructionOffset(index); in replaceNullVariableProducers()
|
/external/proguard/src/proguard/classfile/attribute/visitor/ |
D | StackSizeComputer.java | 64 public boolean isReachable(int instructionOffset) in isReachable() argument 66 return evaluated[instructionOffset]; in isReachable() 74 public int getStackSize(int instructionOffset) in getStackSize() argument 76 if (!evaluated[instructionOffset]) in getStackSize() 78 …lArgumentException("Unknown stack size at unreachable instruction offset ["+instructionOffset+"]"); in getStackSize() 81 return stackSizes[instructionOffset]; in getStackSize() 285 int instructionOffset) in evaluateInstructionBlock() argument 289 if (evaluated[instructionOffset]) in evaluateInstructionBlock() 291 … System.out.println("-- (instruction block at "+instructionOffset+" already evaluated)"); in evaluateInstructionBlock() 309 while (!evaluated[instructionOffset]) in evaluateInstructionBlock() [all …]
|
/external/proguard/src/proguard/classfile/editor/ |
D | CodeAttributeEditor.java | 175 public void insertBeforeInstruction(int instructionOffset, Instruction instruction) in insertBeforeInstruction() argument 177 if (instructionOffset < 0 || in insertBeforeInstruction() 178 instructionOffset >= codeLength) in insertBeforeInstruction() 180 …throw new IllegalArgumentException("Invalid instruction offset ["+instructionOffset+"] in code wit… in insertBeforeInstruction() 183 preInsertions[instructionOffset] = shrinkInstructions ? in insertBeforeInstruction() 198 public void insertBeforeInstruction(int instructionOffset, Instruction[] instructions) in insertBeforeInstruction() argument 200 if (instructionOffset < 0 || in insertBeforeInstruction() 201 instructionOffset >= codeLength) in insertBeforeInstruction() 203 …throw new IllegalArgumentException("Invalid instruction offset ["+instructionOffset+"] in code wit… in insertBeforeInstruction() 209 preInsertions[instructionOffset] = shrinkInstructions ? in insertBeforeInstruction() [all …]
|
D | InstructionWriter.java | 274 private void insertBeforeInstruction(int instructionOffset, Instruction instruction) in insertBeforeInstruction() argument 279 codeAttributeEditor.insertBeforeInstruction(instructionOffset, instruction); in insertBeforeInstruction() 287 private void replaceInstruction(int instructionOffset, Instruction instruction) in replaceInstruction() argument 292 codeAttributeEditor.replaceInstruction(instructionOffset, instruction); in replaceInstruction() 300 private void insertAfterInstruction(int instructionOffset, Instruction instruction) in insertAfterInstruction() argument 305 codeAttributeEditor.insertAfterInstruction(instructionOffset, instruction); in insertAfterInstruction()
|
D | CodeAttributeComposer.java | 354 int instructionOffset = codeFragmentOffsets[level]; in endCodeFragment() local 355 while (instructionOffset < codeLength) in endCodeFragment() 358 Instruction instruction = InstructionFactory.create(code, instructionOffset); in endCodeFragment() 361 if (oldInstructionOffsets[instructionOffset] >= 0) in endCodeFragment() 364 instruction.accept(null, null, null, instructionOffset, this); in endCodeFragment() 371 instructionOffset, in endCodeFragment() 377 instructionOffset += instruction.length(instructionOffset); in endCodeFragment()
|
D | VariableEditor.java | 86 public boolean isDeleted(int instructionOffset) in isDeleted() argument 88 return deleted[instructionOffset]; in isDeleted()
|
/external/proguard/src/proguard/classfile/attribute/preverification/ |
D | NullType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 … verificationTypeVisitor.visitNullType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …verificationTypeVisitor.visitStackNullType(clazz, method, codeAttribute, instructionOffset, stackI… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …ionTypeVisitor.visitVariablesNullType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | LongType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 … verificationTypeVisitor.visitLongType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …verificationTypeVisitor.visitStackLongType(clazz, method, codeAttribute, instructionOffset, stackI… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …ionTypeVisitor.visitVariablesLongType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | IntegerType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 … verificationTypeVisitor.visitIntegerType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …tionTypeVisitor.visitStackIntegerType(clazz, method, codeAttribute, instructionOffset, stackIndex,… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …TypeVisitor.visitVariablesIntegerType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | UninitializedThisType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 …ationTypeVisitor.visitUninitializedThisType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …sitor.visitStackUninitializedThisType(clazz, method, codeAttribute, instructionOffset, stackIndex,… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …r.visitVariablesUninitializedThisType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | DoubleType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 … verificationTypeVisitor.visitDoubleType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …ationTypeVisitor.visitStackDoubleType(clazz, method, codeAttribute, instructionOffset, stackIndex,… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …nTypeVisitor.visitVariablesDoubleType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | FloatType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 … verificationTypeVisitor.visitFloatType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …verificationTypeVisitor.visitStackFloatType(clazz, method, codeAttribute, instructionOffset, stack… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …onTypeVisitor.visitVariablesFloatType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | TopType.java | 42 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 44 verificationTypeVisitor.visitTopType(clazz, method, codeAttribute, instructionOffset, this); in accept() 48 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 50 …verificationTypeVisitor.visitStackTopType(clazz, method, codeAttribute, instructionOffset, stackIn… in stackAccept() 54 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 56 …tionTypeVisitor.visitVariablesTopType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | ObjectType.java | 63 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 65 … verificationTypeVisitor.visitObjectType(clazz, method, codeAttribute, instructionOffset, this); in accept() 69 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 71 …ationTypeVisitor.visitStackObjectType(clazz, method, codeAttribute, instructionOffset, stackIndex,… in stackAccept() 75 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 77 …nTypeVisitor.visitVariablesObjectType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | UninitializedType.java | 62 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 64 …ificationTypeVisitor.visitUninitializedType(clazz, method, codeAttribute, instructionOffset, this); in accept() 68 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 70 …peVisitor.visitStackUninitializedType(clazz, method, codeAttribute, instructionOffset, stackIndex,… in stackAccept() 74 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument 76 …sitor.visitVariablesUninitializedType(clazz, method, codeAttribute, instructionOffset, variableInd… in variablesAccept()
|
D | VerificationType.java | 62 …accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, Verificatio… in accept() argument 68 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int stackIn… in stackAccept() argument 74 …Accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int instructionOffset, int variabl… in variablesAccept() argument
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/ |
D | InstructionOffsetMap.java | 81 private final int instructionOffset; field in InstructionOffsetMap.InvalidInstructionOffset 83 public InvalidInstructionOffset(int instructionOffset) { in InvalidInstructionOffset() argument 84 super("No instruction at offset %d", instructionOffset); in InvalidInstructionOffset() 85 this.instructionOffset = instructionOffset; in InvalidInstructionOffset() 89 return instructionOffset; in getInstructionOffset()
|
/external/proguard/src/proguard/classfile/visitor/ |
D | ExceptionExcludedOffsetFilter.java | 37 private final int instructionOffset; field in ExceptionExcludedOffsetFilter 47 public ExceptionExcludedOffsetFilter(int instructionOffset, in ExceptionExcludedOffsetFilter() argument 50 this.instructionOffset = instructionOffset; in ExceptionExcludedOffsetFilter() 59 if (!exceptionInfo.isApplicable(instructionOffset)) in visitExceptionInfo()
|
D | ExceptionOffsetFilter.java | 37 private final int instructionOffset; field in ExceptionOffsetFilter 47 public ExceptionOffsetFilter(int instructionOffset, in ExceptionOffsetFilter() argument 50 this.instructionOffset = instructionOffset; in ExceptionOffsetFilter() 59 if (exceptionInfo.isApplicable(instructionOffset)) in visitExceptionInfo()
|
/external/proguard/src/proguard/classfile/attribute/ |
D | ExceptionInfo.java | 71 public boolean isApplicable(int instructionOffset) in isApplicable() argument 73 return instructionOffset >= u2startPC && in isApplicable() 74 instructionOffset < u2endPC; in isApplicable()
|
/external/proguard/src/proguard/evaluation/value/ |
D | InstructionOffsetValue.java | 62 public int instructionOffset(int index) in instructionOffset() method in InstructionOffsetValue
|