Home
last modified time | relevance | path

Searched refs:InstructionHandle (Results 1 – 25 of 71) sorted by relevance

123

/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DInstructionList.java46 public class InstructionList implements Iterable<InstructionHandle> {
48 private InstructionHandle start = null;
49 private InstructionHandle end = null;
109 …public static InstructionHandle findHandle(final InstructionHandle[] ihs, final int[] pos, final i… in findHandle()
137 public InstructionHandle findHandle(final int pos) { in findHandle()
139 InstructionHandle ih = start; in findHandle()
158 InstructionHandle[] ihs; in InstructionList()
160 ihs = new InstructionHandle[code.length]; in InstructionList()
173 InstructionHandle ih; in InstructionList()
198 InstructionHandle ih = findHandle(ihs, pos, count, target); in InstructionList()
[all …]
DCodeExceptionGen.java38 private InstructionHandle start_pc;
39 private InstructionHandle end_pc;
40 private InstructionHandle handler_pc;
53 public CodeExceptionGen(final InstructionHandle start_pc, final InstructionHandle end_pc, in CodeExceptionGen()
54 final InstructionHandle handler_pc, final ObjectType catch_type) { in CodeExceptionGen()
81 public void setStartPC( final InstructionHandle start_pc ) { // TODO could be package-protected? in setStartPC()
90 public void setEndPC( final InstructionHandle end_pc ) { // TODO could be package-protected? in setEndPC()
99 …public void setHandlerPC( final InstructionHandle handler_pc ) { // TODO could be package-protecte… in setHandlerPC()
110 public void updateTarget( final InstructionHandle old_ih, final InstructionHandle new_ih ) { in updateTarget()
135 public boolean containsTarget( final InstructionHandle ih ) { in containsTarget()
[all …]
DInstructionHandle.java45 public class InstructionHandle { class
47 private InstructionHandle next;
48 private InstructionHandle prev;
61 public final InstructionHandle getNext() { in getNext()
66 public final InstructionHandle getPrev() { in getPrev()
112 /*private*/protected InstructionHandle(final Instruction i) { in InstructionHandle() method in InstructionHandle
116 private static InstructionHandle ih_list = null; // List of reusable handles
121 static InstructionHandle getInstructionHandle( final Instruction i ) { in getInstructionHandle()
123 return new InstructionHandle(i); in getInstructionHandle()
125 final InstructionHandle ih = ih_list; in getInstructionHandle()
[all …]
DLocalVariableGen.java38 private InstructionHandle start;
39 private InstructionHandle end;
54 …ocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, in LocalVariableGen()
55 final InstructionHandle end) { in LocalVariableGen()
80 …ocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, in LocalVariableGen()
81 final InstructionHandle end, final int orig_index) { in LocalVariableGen()
167 public InstructionHandle getStart() { in getStart()
172 public InstructionHandle getEnd() { in getEnd()
177 public void setStart( final InstructionHandle start ) { // TODO could be package-protected? in setStart()
183 public void setEnd( final InstructionHandle end ) { // TODO could be package-protected? in setEnd()
[all …]
DSelect.java54 …protected InstructionHandle[] targets; // target objects in instruction list TODO could be package…
91 …lect(final short opcode, final int[] match, final InstructionHandle[] targets, final InstructionHa… in Select()
98 for (final InstructionHandle target2 : targets) { in Select()
188 …public void setTarget( final int i, final InstructionHandle target ) { // TODO could be package-pr… in setTarget()
199 public void updateTarget( final InstructionHandle old_ih, final InstructionHandle new_ih ) { in updateTarget()
221 public boolean containsTarget( final InstructionHandle ih ) { in containsTarget()
225 for (final InstructionHandle target2 : targets) { in containsTarget()
250 for (final InstructionHandle target2 : targets) { in dispose()
275 public InstructionHandle[] getTargets() { in getTargets()
300 final InstructionHandle getTarget(final int index) { in getTarget()
[all …]
DBranchInstruction.java45 protected InstructionHandle target; // Target object in instruction list
66 protected BranchInstruction(final short opcode, final InstructionHandle target) { in BranchInstruction()
91 protected int getTargetOffset( final InstructionHandle _target ) { in getTargetOffset()
195 public InstructionHandle getTarget() { in getTarget()
204 public void setTarget( final InstructionHandle target ) { in setTarget()
213 static void notifyTarget( final InstructionHandle old_ih, final InstructionHandle new_ih, in notifyTarget()
229 public void updateTarget( final InstructionHandle old_ih, final InstructionHandle new_ih ) { in updateTarget()
242 public boolean containsTarget( final InstructionHandle ih ) { in containsTarget()
DSWITCH.java30 private InstructionHandle[] targets;
50 …public SWITCH(final int[] match, final InstructionHandle[] targets, final InstructionHandle target… in SWITCH()
67 …public SWITCH(final int[] match, final InstructionHandle[] targets, final InstructionHandle target… in SWITCH()
72 private void fillup( final int max_gap, final InstructionHandle target ) { in fillup()
75 final InstructionHandle[] t_vec = new InstructionHandle[max_size]; in fillup()
92 targets = new InstructionHandle[count]; in fillup()
106 InstructionHandle h2; in sort()
DLineNumberGen.java32 private InstructionHandle ih;
41 public LineNumberGen(final InstructionHandle ih, final int src_line) { in LineNumberGen()
51 public boolean containsTarget( final InstructionHandle ih ) { in containsTarget()
61 public void updateTarget( final InstructionHandle old_ih, final InstructionHandle new_ih ) { in updateTarget()
80 public void setInstruction( final InstructionHandle ih ) { // TODO could be package-protected? in setInstruction()
99 public InstructionHandle getInstruction() { in getInstruction()
DMethodGen.java132 InstructionHandle start = null; in MethodGen()
133 final InstructionHandle end = null; in MethodGen()
204 InstructionHandle end; in MethodGen()
221 final InstructionHandle ih = il.findHandle(l.getStartPC()); in MethodGen()
265 final InstructionHandle start, final InstructionHandle end, final int orig_index ) { in addLocalVariable()
299 final InstructionHandle start, final InstructionHandle end ) { in addLocalVariable()
315 …calVariableGen addLocalVariable( final String name, final Type type, final InstructionHandle start, in addLocalVariable()
316 final InstructionHandle end ) { in addLocalVariable()
400 public LineNumberGen addLineNumber( final InstructionHandle ih, final int src_line ) { in addLineNumber()
458 public CodeExceptionGen addExceptionHandler( final InstructionHandle start_pc, in addExceptionHandler()
[all …]
DBranchHandle.java31 public final class BranchHandle extends InstructionHandle {
97 public void setTarget( final InstructionHandle ih ) { in setTarget()
105 public void updateTarget( final InstructionHandle old_ih, final InstructionHandle new_ih ) { in updateTarget()
113 public InstructionHandle getTarget() { in getTarget()
DJsrInstruction.java28 JsrInstruction(final short opcode, final InstructionHandle target) { in JsrInstruction()
60 public InstructionHandle physicalSuccessor() { in physicalSuccessor()
61 InstructionHandle ih = super.getTarget(); in physicalSuccessor()
70 final InstructionHandle toThis = ih; in physicalSuccessor()
DInstructionTargeter.java35 boolean containsTarget(InstructionHandle ih); in containsTarget()
44 void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih) throws ClassGenException; in updateTarget()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/structurals/
DSubroutines.java34 import org.apache.bcel.generic.InstructionHandle;
88 …private final Set<InstructionHandle> instructions = new HashSet<>(); // Elements: InstructionHandle
94 public boolean contains(final InstructionHandle inst) { in contains()
102 private final Set<InstructionHandle> theJSRs = new HashSet<>();
107 private InstructionHandle theRET;
150 InstructionHandle ret = null; in setLeavingRET()
151 for (final InstructionHandle actual : instructions) { in setLeavingRET()
174 public InstructionHandle[] getEnteringJsrInstructions() { in getEnteringJsrInstructions()
178 final InstructionHandle[] jsrs = new InstructionHandle[theJSRs.size()]; in getEnteringJsrInstructions()
185 public void addEnteringJsrInstruction(final InstructionHandle jsrInst) { in addEnteringJsrInstruction()
[all …]
DControlFlowGraph.java30 import org.apache.bcel.generic.InstructionHandle;
64 private final InstructionHandle instruction;
86 public InstructionContextImpl(final InstructionHandle inst) { in InstructionContextImpl()
284 public InstructionHandle getInstruction() { in getInstruction()
329 private InstructionHandle[] _getSuccessors() { in _getSuccessors()
330 final InstructionHandle[] empty = new InstructionHandle[0]; in _getSuccessors()
331 final InstructionHandle[] single = new InstructionHandle[1]; in _getSuccessors()
346 final InstructionHandle[] jsrs = s.getEnteringJsrInstructions(); in _getSuccessors()
347 final InstructionHandle[] ret = new InstructionHandle[jsrs.length]; in _getSuccessors()
380 final InstructionHandle[] matchTargets = ((Select) inst).getTargets(); in _getSuccessors()
[all …]
DSubroutine.java21 import org.apache.bcel.generic.InstructionHandle;
36 InstructionHandle[] getEnteringJsrInstructions(); in getEnteringJsrInstructions()
45 InstructionHandle getLeavingRET(); in getLeavingRET()
53 InstructionHandle[] getInstructions(); in getInstructions()
63 boolean contains(InstructionHandle inst); in contains()
DExceptionHandler.java21 import org.apache.bcel.generic.InstructionHandle;
36 private final InstructionHandle handlerpc;
39 ExceptionHandler(final ObjectType catch_type, final InstructionHandle handler_pc) { in ExceptionHandler()
54 public InstructionHandle getHandlerStart() { in getHandlerStart()
DExceptionHandlers.java27 import org.apache.bcel.generic.InstructionHandle;
40 private final Map<InstructionHandle, Set<ExceptionHandler>> exceptionhandlers;
50 … for (InstructionHandle ih=ceg.getStartPC(); ih != ceg.getEndPC().getNext(); ih=ih.getNext()) { in ExceptionHandlers()
66 public ExceptionHandler[] getExceptionHandlers(final InstructionHandle ih) { in getExceptionHandlers()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DInstructionHandleTestCase.java29 …final InstructionHandle ih = InstructionHandle.getInstructionHandle(new NOP());// have to start wi… in testsetInstructionNull()
37 …final InstructionHandle ih = InstructionHandle.getInstructionHandle(new NOP());// have to start wi… in testsetInstructionI()
45 …final InstructionHandle ih = InstructionHandle.getInstructionHandle(new NOP());// have to start wi… in testsetInstructionnotI()
53 InstructionHandle.getInstructionHandle(null); in testGetIHnull()
59 final InstructionHandle ih = il.append(InstructionConst.NOP); in testBCEL195()
60 new TABLESWITCH(new int[0], new InstructionHandle[0], ih); in testBCEL195()
61 new TABLESWITCH(new int[0], new InstructionHandle[0], ih); in testBCEL195()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DInstructionFinder.java31 import org.apache.bcel.generic.InstructionHandle;
74 private InstructionHandle[] handles; // map instruction
164 private InstructionHandle[] getMatch( final int matched_from, final int match_length ) { in getMatch()
165 final InstructionHandle[] match = new InstructionHandle[match_length]; in getMatch()
206 …public final Iterator<InstructionHandle[]> search( final String pattern, final InstructionHandle f… in search()
220 final List<InstructionHandle[]> matches = new ArrayList<>(); in search()
226 final InstructionHandle[] match = getMatch(startExpr, lenExpr); in search()
244 public final Iterator<InstructionHandle[]> search( final String pattern ) { in search()
259 …public final Iterator<InstructionHandle[]> search( final String pattern, final InstructionHandle f… in search()
274 …public final Iterator<InstructionHandle[]> search( final String pattern, final CodeConstraint cons… in search()
[all …]
/external/apache-commons-bcel/src/examples/
DJasminVisitor.java45 import org.apache.bcel.generic.InstructionHandle;
163 private Hashtable<InstructionHandle, String> map;
174 InstructionHandle[] ihs = il.getInstructionHandles(); in visitCode()
179 map = new Hashtable<InstructionHandle, String>(); in visitCode()
181 for (InstructionHandle ih1 : ihs) { in visitCode()
186 for (InstructionHandle target : ((Select) bi).getTargets()) { in visitCode()
191 InstructionHandle ih = bi.getTarget(); in visitCode()
198 InstructionHandle ih = lv.getStart(); in visitCode()
206 InstructionHandle ih = c.getStartPC(); in visitCode()
217 InstructionHandle ih = ln.getInstruction(); in visitCode()
[all …]
DPeephole.java25 import org.apache.bcel.generic.InstructionHandle;
69 InstructionHandle next = null; in removeNOPs()
72 for (Iterator<InstructionHandle[]> e = f.search(pat); e.hasNext(); ) { in removeNOPs()
73 InstructionHandle[] match = e.next(); in removeNOPs()
74 InstructionHandle first = match[0]; in removeNOPs()
75 InstructionHandle last = match[match.length - 1]; in removeNOPs()
88 for (InstructionHandle target : e2.getTargets()) { in removeNOPs()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/verifier/tests/
DTestArrayAccess04Creator.java29 import org.apache.bcel.generic.InstructionHandle;
61 final InstructionHandle ih_0 = il.append(InstructionFactory.createLoad(Type.OBJECT, 0)); in createMethod_0()
64 final InstructionHandle ih_4 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_0()
77 final InstructionHandle ih_0 = il.append(new PUSH(_cp, 1)); in createMethod_1()
81 final InstructionHandle ih_5 = il.append(new PUSH(_cp, 1)); in createMethod_1()
84 final InstructionHandle ih_7 = il.append(InstructionFactory.createLoad(Type.OBJECT, 1)); in createMethod_1()
89 final InstructionHandle ih_11 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_1()
DTestArrayAccess02Creator.java28 import org.apache.bcel.generic.InstructionHandle;
61 final InstructionHandle ih_0 = il.append(InstructionFactory.createLoad(Type.OBJECT, 0)); in createMethod_0()
64 final InstructionHandle ih_4 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_0()
77 final InstructionHandle ih_0 = il.append(new PUSH(_cp, 1)); in createMethod_1()
81 final InstructionHandle ih_5 = il.append(new PUSH(_cp, 1)); in createMethod_1()
85 final InstructionHandle ih_10 = il.append(InstructionFactory.createLoad(Type.OBJECT, 1)); in createMethod_1()
92 final InstructionHandle ih_20 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_1()
DTestArrayAccess03Creator.java28 import org.apache.bcel.generic.InstructionHandle;
61 final InstructionHandle ih_0 = il.append(InstructionFactory.createLoad(Type.OBJECT, 0)); in createMethod_0()
64 final InstructionHandle ih_4 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_0()
77 final InstructionHandle ih_0 = il.append(new PUSH(_cp, 1)); in createMethod_1()
81 final InstructionHandle ih_5 = il.append(InstructionFactory.createLoad(Type.OBJECT, 0)); in createMethod_1()
88 final InstructionHandle ih_15 = il.append(InstructionFactory.createReturn(Type.VOID)); in createMethod_1()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/
DInstructionFinderTestCase.java24 import org.apache.bcel.generic.InstructionHandle;
53 final InstructionHandle[] ihs = (InstructionHandle[])it.next(); in testSearchAll()
55 for (final InstructionHandle ih : ihs) in testSearchAll()

123