Home
last modified time | relevance | path

Searched refs:codeAttributeEditor (Results 1 – 20 of 20) sorted by relevance

/external/proguard/src/proguard/classfile/editor/
DInstructionWriter.java52 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 …]
DCodeAttributeEditorResetter.java38 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()
DMethodInvocationFixer.java47 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()
DVariableRemapper.java53 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()
DConstantPoolRemapper.java62 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/
DGotoReturnReplacer.java40 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()
DGotoGotoReplacer.java40 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()
DNopRemover.java39 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()
DPeepholeOptimizer.java42 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()
DInstructionSequencesReplacer.java59 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()
DInstructionSequenceReplacer.java89 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()
190codeAttributeEditor.replaceInstruction(instructionSequenceMatcher.matchedInstructionOffset(index), in visitAnyInstruction()
197codeAttributeEditor.deleteInstruction(instructionSequenceMatcher.matchedInstructionOffset(index)); in visitAnyInstruction()
223 … if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) in matchedInstructionsUnmodified()
DGotoCommonCodeReplacer.java53 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()
DUnreachableCodeRemover.java51 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/
DEvaluationSimplifier.java61 …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 …]
DSimpleEnumClassSimplifier.java108 private final CodeAttributeEditor codeAttributeEditor = field in SimpleEnumClassSimplifier
116 codeAttributeEditor);
156 codeAttributeEditor.reset(codeAttribute.u4codeLength); in visitCodeAttribute()
162 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); in visitCodeAttribute()
DSimpleEnumUseSimplifier.java60 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()
DEvaluationShrinker.java101 …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/
DDuplicateInitializerInvocationFixer.java49 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()
DOptimizer.java845 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/
DCodePreverifier.java58 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()