Home
last modified time | relevance | path

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

12

/external/proguard/src/proguard/classfile/editor/
DInstructionWriter.java155 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
160 branchInstruction.write(codeAttribute, offset); in visitBranchInstruction()
167 branchInstruction.branchOffset); in visitBranchInstruction()
170 switch (branchInstruction.opcode) in visitBranchInstruction()
176 new BranchInstruction(branchInstruction.opcode, in visitBranchInstruction()
177 branchInstruction.branchOffset); in visitBranchInstruction()
200 new BranchInstruction((byte)(((branchInstruction.opcode+1) ^ 1) - 1), in visitBranchInstruction()
214 new BranchInstruction((byte)(branchInstruction.opcode ^ 1), in visitBranchInstruction()
226 …System.out.println(" "+branchInstruction.toString(offset)+" will be widened to "+replacementInstr… in visitBranchInstruction()
232 branchInstruction.branchOffset = 0; in visitBranchInstruction()
[all …]
DCodeAttributeEditor.java852 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
855 branchInstruction.branchOffset = in visitBranchInstruction()
856 newBranchOffset(offset, branchInstruction.branchOffset, newOffset); in visitBranchInstruction()
863 branchInstruction); in visitBranchInstruction()
865 newOffset += branchInstruction.length(newOffset); in visitBranchInstruction()
DCodeAttributeComposer.java539 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
544 branchInstruction.branchOffset = in visitBranchInstruction()
545 newBranchOffset(offset, 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()
88 branchOffset != branchInstruction.length(offset) && in visitBranchInstruction()
109 …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()
133 if (newBranchOffset != branchInstruction.length(offset)) in visitBranchInstruction()
144 …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()
DReachableCodeMarker.java145 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
151 offset + branchInstruction.branchOffset); in visitBranchInstruction()
153 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
DBranchTargetFinder.java552 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
554 int branchOffset = branchInstruction.branchOffset; in visitBranchInstruction()
566 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
589 markAfterBranchOrigin(offset + branchInstruction.length(offset)); in visitBranchInstruction()
DInstructionSequenceReplacer.java290 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
293 new BranchInstruction(branchInstruction.opcode, in visitBranchInstruction()
295branchInstruction.branchOffset)); in visitBranchInstruction()
DMethodInliner.java381 Instruction branchInstruction = in visitSimpleInstruction() local
386 branchInstruction); in visitSimpleInstruction()
/external/swiftshader/src/Pipeline/
DSpirvShaderControlFlow.cpp49 branchInstruction = insns[1]; in Block()
50 outs.emplace(Block::ID(branchInstruction.word(1))); in Block()
68 branchInstruction = insns[1]; in Block()
69 outs.emplace(Block::ID(branchInstruction.word(2))); in Block()
70 outs.emplace(Block::ID(branchInstruction.word(3))); in Block()
94 branchInstruction = insns[1]; in Block()
95 outs.emplace(Block::ID(branchInstruction.word(2))); in Block()
96 for(uint32_t w = 4; w < branchInstruction.wordCount(); w += 2) in Block()
98 outs.emplace(Block::ID(branchInstruction.word(w))); in Block()
507 ASSERT(block.branchInstruction == insn); in EmitBranchConditional()
[all …]
/external/proguard/src/proguard/optimize/evaluation/
DSimpleEnumUseSimplifier.java348 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
350 switch (branchInstruction.opcode) in visitBranchInstruction()
359 branchInstruction, in visitBranchInstruction()
361 branchInstruction.branchOffset)); in visitBranchInstruction()
372 branchInstruction, in visitBranchInstruction()
374 branchInstruction.branchOffset)); in visitBranchInstruction()
385 branchInstruction, in visitBranchInstruction()
388 branchInstruction.branchOffset)); in visitBranchInstruction()
399 branchInstruction, in visitBranchInstruction()
401 branchInstruction.branchOffset)); in visitBranchInstruction()
DEvaluationSimplifier.java335 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
337 switch (branchInstruction.opcode) in visitBranchInstruction()
346 replaceJsrInstruction(clazz, offset, branchInstruction); in visitBranchInstruction()
350 replaceBranchInstruction(clazz, offset, branchInstruction); in visitBranchInstruction()
786 BranchInstruction branchInstruction) in replaceJsrInstruction() argument
789 int subroutineStart = offset + branchInstruction.branchOffset; in replaceJsrInstruction()
795 replaceBranchInstruction(clazz, offset, branchInstruction); in replaceJsrInstruction()
797 else if (!partialEvaluator.isTraced(offset + branchInstruction.length(offset))) in replaceJsrInstruction()
801 … replaceByInfiniteLoop(clazz, offset + branchInstruction.length(offset), branchInstruction); in replaceJsrInstruction()
DSimpleEnumUseChecker.java318 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
320 switch (branchInstruction.opcode) in visitBranchInstruction()
DEvaluationShrinker.java666 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
671 if (branchInstruction.opcode == InstructionConstants.OP_JSR || in visitBranchInstruction()
672 branchInstruction.opcode == InstructionConstants.OP_JSR_W) in visitBranchInstruction()
678 markStackProducers(clazz, offset, branchInstruction); in visitBranchInstruction()
/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/classfile/attribute/visitor/
DStackSizeComputer.java192 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
194 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
201 branchInstruction.branchOffset); in visitBranchInstruction()
214 offset + branchInstruction.length(offset)); 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.java255 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
257 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
/external/proguard/src/proguard/preverify/
DCodeSubroutineInliner.java299 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
301 byte opcode = branchInstruction.opcode; in visitBranchInstruction()
305 int branchOffset = branchInstruction.branchOffset; in visitBranchInstruction()
339 codeAttributeComposer.appendInstruction(offset, branchInstruction); 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.java289 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
296 matchingOpcodes(branchInstruction, patternInstruction) && in visitBranchInstruction()
298 branchInstruction.branchOffset, in visitBranchInstruction()
307 branchInstruction); in visitBranchInstruction()
DSimplifiedVisitor.java603 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
605 visitAnyInstruction(clazz, method, codeAttribute, offset, branchInstruction); in visitBranchInstruction()
/external/proguard/src/proguard/evaluation/
DProcessor.java763 …clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) in visitBranchInstruction() argument
765 int branchTarget = offset + branchInstruction.branchOffset; in visitBranchInstruction()
767 switch (branchInstruction.opcode) in visitBranchInstruction()
853 branchInstruction.length(offset))); in visitBranchInstruction()
868 … throw new IllegalArgumentException("Unknown branch instruction ["+branchInstruction.opcode+"]"); in visitBranchInstruction()

12