/external/proguard/src/proguard/classfile/editor/ |
D | InstructionWriter.java | 52 private CodeAttributeEditor codeAttributeEditor; field in InstructionWriter 63 if (codeAttributeEditor != null) in reset() 65 codeAttributeEditor.reset(codeLength); in reset() 78 if (codeAttributeEditor != null) in extend() 80 codeAttributeEditor.extend(codeLength); in extend() 251 if (codeAttributeEditor != null) in visitCodeAttribute() 259 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 263 codeAttributeEditor = null; in visitCodeAttribute() 279 codeAttributeEditor.insertBeforeInstruction(instructionOffset, instruction); in insertBeforeInstruction() 292 codeAttributeEditor.replaceInstruction(instructionOffset, instruction); in replaceInstruction() [all …]
|
D | CodeAttributeEditorResetter.java | 38 private final CodeAttributeEditor codeAttributeEditor; field in CodeAttributeEditorResetter 45 public CodeAttributeEditorResetter(CodeAttributeEditor codeAttributeEditor) in CodeAttributeEditorResetter() argument 47 this.codeAttributeEditor = codeAttributeEditor; in CodeAttributeEditorResetter() 58 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute()
|
D | MethodInvocationFixer.java | 47 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); field in MethodInvocationFixer 63 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 69 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 105 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitConstantInstruction() 126 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitConstantInstruction() 152 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitConstantInstruction() 177 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitConstantInstruction()
|
D | VariableRemapper.java | 53 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); field in VariableRemapper 105 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 111 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 200 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitVariableInstruction()
|
D | ConstantPoolRemapper.java | 62 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(false, true); field in ConstantPoolRemapper 364 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 371 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 522 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in visitConstantInstruction()
|
/external/proguard/src/proguard/optimize/peephole/ |
D | GotoReturnReplacer.java | 40 private final CodeAttributeEditor codeAttributeEditor; field in GotoReturnReplacer 49 public GotoReturnReplacer(CodeAttributeEditor codeAttributeEditor) in GotoReturnReplacer() argument 51 this(codeAttributeEditor, null); in GotoReturnReplacer() 62 public GotoReturnReplacer(CodeAttributeEditor codeAttributeEditor, in GotoReturnReplacer() argument 65 this.codeAttributeEditor = codeAttributeEditor; in GotoReturnReplacer() 85 if (!codeAttributeEditor.isModified(offset) && in visitBranchInstruction() 86 !codeAttributeEditor.isModified(targetOffset)) in visitBranchInstruction() 101 codeAttributeEditor.replaceInstruction(offset, in visitBranchInstruction()
|
D | GotoGotoReplacer.java | 40 private final CodeAttributeEditor codeAttributeEditor; field in GotoGotoReplacer 49 public GotoGotoReplacer(CodeAttributeEditor codeAttributeEditor) in GotoGotoReplacer() argument 51 this(codeAttributeEditor, null); in GotoGotoReplacer() 62 public GotoGotoReplacer(CodeAttributeEditor codeAttributeEditor, in GotoGotoReplacer() argument 65 this.codeAttributeEditor = codeAttributeEditor; in GotoGotoReplacer() 89 !codeAttributeEditor.isModified(offset) && in visitBranchInstruction() 90 !codeAttributeEditor.isModified(targetOffset)) in visitBranchInstruction() 103 codeAttributeEditor.replaceInstruction(offset, in visitBranchInstruction()
|
D | NopRemover.java | 39 private final CodeAttributeEditor codeAttributeEditor; field in NopRemover 48 public NopRemover(CodeAttributeEditor codeAttributeEditor) in NopRemover() argument 50 this(codeAttributeEditor, null); in NopRemover() 61 public NopRemover(CodeAttributeEditor codeAttributeEditor, in NopRemover() argument 64 this.codeAttributeEditor = codeAttributeEditor; in NopRemover() 78 !codeAttributeEditor.isModified(offset)) in visitSimpleInstruction() 80 codeAttributeEditor.deleteInstruction(offset); in visitSimpleInstruction()
|
D | PeepholeOptimizer.java | 42 private final CodeAttributeEditor codeAttributeEditor; field in PeepholeOptimizer 54 public PeepholeOptimizer(CodeAttributeEditor codeAttributeEditor, in PeepholeOptimizer() argument 57 this(null, codeAttributeEditor, instructionVisitor); in PeepholeOptimizer() 72 CodeAttributeEditor codeAttributeEditor, in PeepholeOptimizer() argument 76 this.codeAttributeEditor = codeAttributeEditor; in PeepholeOptimizer() 95 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 101 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute()
|
D | InstructionSequencesReplacer.java | 59 CodeAttributeEditor codeAttributeEditor) in InstructionSequencesReplacer() argument 64 codeAttributeEditor, in InstructionSequencesReplacer() 88 CodeAttributeEditor codeAttributeEditor, in InstructionSequencesReplacer() argument 94 codeAttributeEditor, in InstructionSequencesReplacer() 118 … CodeAttributeEditor codeAttributeEditor, in createInstructionSequenceReplacers() argument 132 codeAttributeEditor, in createInstructionSequenceReplacers()
|
D | InstructionSequenceReplacer.java | 89 private final CodeAttributeEditor codeAttributeEditor; field in InstructionSequenceReplacer 111 CodeAttributeEditor codeAttributeEditor) in InstructionSequenceReplacer() argument 117 codeAttributeEditor, in InstructionSequenceReplacer() 138 CodeAttributeEditor codeAttributeEditor, in InstructionSequenceReplacer() argument 145 this.codeAttributeEditor = codeAttributeEditor; in InstructionSequenceReplacer() 158 codeAttributeEditor.isModified(offset)) in visitAnyInstruction() 190 … codeAttributeEditor.replaceInstruction(instructionSequenceMatcher.matchedInstructionOffset(index), in visitAnyInstruction() 197 … codeAttributeEditor.deleteInstruction(instructionSequenceMatcher.matchedInstructionOffset(index)); in visitAnyInstruction() 223 … if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) in matchedInstructionsUnmodified()
|
D | GotoCommonCodeReplacer.java | 53 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(true, false); field in GotoCommonCodeReplacer 82 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 88 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 126 codeAttributeEditor.clearModifications(deleteOffset); in visitBranchInstruction() 127 codeAttributeEditor.deleteInstruction(deleteOffset); in visitBranchInstruction() 137 codeAttributeEditor.replaceInstruction(offset, in visitBranchInstruction()
|
D | UnreachableCodeRemover.java | 51 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); field in UnreachableCodeRemover 113 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute0() 117 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute0() 134 codeAttributeEditor.deleteInstruction(offset); in visitAnyInstruction()
|
/external/proguard/src/proguard/optimize/evaluation/ |
D | EvaluationSimplifier.java | 61 …private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(… field in EvaluationSimplifier 139 codeAttributeEditor.reset(codeLength); in visitCodeAttribute0() 154 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute0() 362 if (!codeAttributeEditor.isModified(offset)) in visitTableSwitchInstruction() 370 if (!codeAttributeEditor.isModified(offset)) in visitTableSwitchInstruction() 386 if (!codeAttributeEditor.isModified(offset)) in visitLookUpSwitchInstruction() 394 if (!codeAttributeEditor.isModified(offset)) in visitLookUpSwitchInstruction() 822 codeAttributeEditor.deleteInstruction(offset); in deleteReferencePopInstruction() 879 !codeAttributeEditor.isModified(producerOffset)) in replaceSimpleEnumSwitchInstruction() 966 !codeAttributeEditor.isModified(producerOffset)) in replaceSimpleEnumSwitchInstruction() [all …]
|
D | SimpleEnumClassSimplifier.java | 108 private final CodeAttributeEditor codeAttributeEditor = field in SimpleEnumClassSimplifier 116 codeAttributeEditor); 156 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 162 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute()
|
D | SimpleEnumUseSimplifier.java | 60 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(true, true); field in SimpleEnumUseSimplifier 121 codeAttributeEditor.reset(codeLength); in visitCodeAttribute() 136 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 612 codeAttributeEditor.replaceInstruction(offset, replacementInstructions); in replaceInstructions() 642 codeAttributeEditor.replaceInstruction(offset, replacementInstruction); in replaceInstruction() 671 codeAttributeEditor.deleteInstruction(offset); in deleteInstruction() 701 codeAttributeEditor.insertBeforeInstruction(offset, in insertPopInstructions() 711 codeAttributeEditor.insertBeforeInstruction(offset, in insertPopInstructions() 737 codeAttributeEditor.insertBeforeInstruction(offset, in insertPopInstructions()
|
D | EvaluationShrinker.java | 101 …private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEdito… field in EvaluationShrinker 195 codeAttributeEditor.reset(codeLength); in visitCodeAttribute0() 412 codeAttributeEditor.clearModifications(offset); in visitCodeAttribute0() 413 codeAttributeEditor.deleteInstruction(offset); in visitCodeAttribute0() 452 boolean deleted = codeAttributeEditor.deleted[offset]; in visitCodeAttribute0() 458 Instruction preInsertion = codeAttributeEditor.preInsertions[offset]; in visitCodeAttribute0() 464 Instruction replacement = codeAttributeEditor.replacements[offset]; in visitCodeAttribute0() 470 Instruction postInsertion = codeAttributeEditor.postInsertions[offset]; in visitCodeAttribute0() 483 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute0() 976 codeAttributeEditor.deleteInstruction(offset); in visitSimpleInstruction() [all …]
|
/external/proguard/src/proguard/optimize/ |
D | DuplicateInitializerInvocationFixer.java | 49 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); field in DuplicateInitializerInvocationFixer 84 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute() 92 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute() 115 codeAttributeEditor.insertBeforeInstruction(offset, in visitConstantInstruction()
|
D | Optimizer.java | 845 CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); in execute() local 854 … branchTargetFinder, codeAttributeEditor, codeSimplificationVariableCounter)); in execute() 863 … branchTargetFinder, codeAttributeEditor, codeSimplificationArithmeticCounter)); in execute() 872 … branchTargetFinder, codeAttributeEditor, codeSimplificationCastCounter)); in execute() 881 … branchTargetFinder, codeAttributeEditor, codeSimplificationFieldCounter)); in execute() 890 … branchTargetFinder, codeAttributeEditor, codeSimplificationBranchCounter)); in execute() 894 new GotoGotoReplacer(codeAttributeEditor, codeSimplificationBranchCounter)); in execute() 896 new GotoReturnReplacer(codeAttributeEditor, codeSimplificationBranchCounter)); in execute() 905 … branchTargetFinder, codeAttributeEditor, codeSimplificationStringCounter)); in execute() 919 new PeepholeOptimizer(branchTargetFinder, codeAttributeEditor, in execute()
|
/external/proguard/src/proguard/preverify/ |
D | CodePreverifier.java | 58 private final CodeAttributeEditor codeAttributeEditor = new CodeAttributeEditor(); field in CodePreverifier 112 codeAttributeEditor.reset(codeLength); in visitCodeAttribute0() 123 codeAttributeEditor.deleteInstruction(offset); in visitCodeAttribute0() 249 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute0()
|