Home
last modified time | relevance | path

Searched refs:branchInstruction (Results 1 – 22 of 22) sorted by relevance

/external/proguard/src/proguard/classfile/editor/
DInstructionWriter.java124 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
129 branchInstruction.write(codeAttribute, offset); in visitBranchInstruction()
136 branchInstruction.branchOffset); in visitBranchInstruction()
139 switch (branchInstruction.opcode) in visitBranchInstruction()
145 new BranchInstruction(branchInstruction.opcode, in visitBranchInstruction()
146 branchInstruction.branchOffset).shrink(); in visitBranchInstruction()
169 new BranchInstruction((byte)(((branchInstruction.opcode+1) ^ 1) - 1), in visitBranchInstruction()
183 new BranchInstruction((byte)(branchInstruction.opcode ^ 1), in visitBranchInstruction()
196 branchInstruction.branchOffset = 0; in visitBranchInstruction()
197 branchInstruction.write(codeAttribute, offset); in visitBranchInstruction()
DCodeAttributeEditor.java765 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
768 branchInstruction.branchOffset = remapBranchOffset(offset, in visitBranchInstruction()
769 branchInstruction.branchOffset); in visitBranchInstruction()
776 branchInstruction); in visitBranchInstruction()
778 newOffset += branchInstruction.length(newOffset); in visitBranchInstruction()
DCodeAttributeComposer.java459 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
462 branchInstruction.branchOffset = remapBranchOffset(offset, in visitBranchInstruction()
463 branchInstruction.branchOffset); in visitBranchInstruction()
/external/proguard/src/proguard/optimize/peephole/
DGotoGotoReplacer.java75 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
78 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
84 int branchOffset = branchInstruction.branchOffset; in visitBranchInstruction()
87 if (branchOffset != branchInstruction.length(offset) && in visitBranchInstruction()
108 …InstructionVisitor.visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
DGotoCommonCodeReplacer.java97 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
101 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
106 int branchOffset = branchInstruction.branchOffset; in visitBranchInstruction()
117 …tName()+"."+method.getName(clazz)+" (["+(offset-commonCount)+"] - "+branchInstruction.toString(off… in visitBranchInstruction()
136 if (newBranchOffset != branchInstruction.length(offset)) in visitBranchInstruction()
147 …InstructionVisitor.visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
DGotoReturnReplacer.java75 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
78 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
83 int targetOffset = offset + branchInstruction.branchOffset; in visitBranchInstruction()
107 …InstructionVisitor.visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
DBranchTargetFinder.java537 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
546 markBranchTarget(offset, branchInstruction.branchOffset); in visitBranchInstruction()
548 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
556 int targetOffset = offset + branchInstruction.branchOffset; in visitBranchInstruction()
563 markAfterBranchOrigin(offset + branchInstruction.length(offset)); in visitBranchInstruction()
DReachableCodeMarker.java146 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
152 offset + branchInstruction.branchOffset); in visitBranchInstruction()
154 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
DInstructionSequenceReplacer.java249 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
252 new BranchInstruction(branchInstruction.opcode, in visitBranchInstruction()
253 … instructionSequenceMatcher.matchedBranchOffset(offset, branchInstruction.branchOffset)); in visitBranchInstruction()
DMethodInliner.java344 Instruction branchInstruction = in visitSimpleInstruction() local
349 branchInstruction.shrink()); in visitSimpleInstruction()
/external/proguard/src/proguard/classfile/instruction/
DBranchInstruction.java56 public BranchInstruction copy(BranchInstruction branchInstruction) in copy() argument
58 this.opcode = branchInstruction.opcode; in copy()
59 this.branchOffset = branchInstruction.branchOffset; in copy()
/external/proguard/src/proguard/optimize/evaluation/
DEvaluationSimplifier.java333 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
335 switch (branchInstruction.opcode) in visitBranchInstruction()
344 replaceJsrInstruction(clazz, offset, branchInstruction); in visitBranchInstruction()
348 replaceBranchInstruction(clazz, offset, branchInstruction); in visitBranchInstruction()
732 BranchInstruction branchInstruction) in replaceJsrInstruction() argument
735 int subroutineStart = offset + branchInstruction.branchOffset; in replaceJsrInstruction()
741 replaceBranchInstruction(clazz, offset, branchInstruction); in replaceJsrInstruction()
743 else if (!partialEvaluator.isTraced(offset + branchInstruction.length(offset))) in replaceJsrInstruction()
747 … replaceByInfiniteLoop(clazz, offset + branchInstruction.length(offset), branchInstruction); in replaceJsrInstruction()
DEvaluationShrinker.java641 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
646 if (branchInstruction.opcode == InstructionConstants.OP_JSR || in visitBranchInstruction()
647 branchInstruction.opcode == InstructionConstants.OP_JSR_W) in visitBranchInstruction()
653 markStackProducers(clazz, offset, branchInstruction); in visitBranchInstruction()
/external/proguard/src/proguard/classfile/attribute/visitor/
DStackSizeComputer.java193 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
195 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
202 branchInstruction.branchOffset); in visitBranchInstruction()
215 offset + branchInstruction.length(offset)); in visitBranchInstruction()
/external/proguard/src/proguard/preverify/
DCodeSubroutineInliner.java302 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
304 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
308 int branchOffset = branchInstruction.branchOffset; in visitBranchInstruction()
342 codeAttributeComposer.appendInstruction(offset, branchInstruction); in visitBranchInstruction()
/external/proguard/src/proguard/optimize/info/
DBackwardBranchMarker.java44 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
46 markBackwardBranch(method, branchInstruction.branchOffset); in visitBranchInstruction()
DSideEffectInstructionChecker.java137 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
139 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
/external/proguard/src/proguard/classfile/instruction/visitor/
DMultiInstructionVisitor.java108 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
112 …ionVisitors[index].visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
DInstructionVisitor.java39 …Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction); in visitBranchInstruction() argument
/external/proguard/src/proguard/classfile/util/
DInstructionSequenceMatcher.java250 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
257 matchingOpcodes(branchInstruction, patternInstruction) && in visitBranchInstruction()
259 branchInstruction.branchOffset, in visitBranchInstruction()
268 branchInstruction); in visitBranchInstruction()
DSimplifiedVisitor.java497 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
499 visitAnyInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
/external/proguard/src/proguard/evaluation/
DProcessor.java746 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
748 int branchTarget = offset + branchInstruction.branchOffset; in visitBranchInstruction()
750 switch (branchInstruction.opcode) in visitBranchInstruction()
836 branchInstruction.length(offset))); in visitBranchInstruction()
851 … throw new IllegalArgumentException("Unknown branch instruction ["+branchInstruction.opcode+"]"); in visitBranchInstruction()