Home
last modified time | relevance | path

Searched refs:insn (Results 1 – 25 of 108) sorted by relevance

12345

/dalvik/dx/src/com/android/dx/dex/code/
DOutputFinisher.java126 private static boolean hasLocalInfo(DalvInsn insn) { in hasLocalInfo() argument
127 if (insn instanceof LocalSnapshot) { in hasLocalInfo()
128 RegisterSpecSet specs = ((LocalSnapshot) insn).getLocals(); in hasLocalInfo()
135 } else if (insn instanceof LocalStart) { in hasLocalInfo()
136 RegisterSpec spec = ((LocalStart) insn).getLocal(); in hasLocalInfo()
167 for (DalvInsn insn : insns) { in getAllConstants()
168 addConstants(result, insn); in getAllConstants()
182 DalvInsn insn) { in addConstants() argument
183 if (insn instanceof CstInsn) { in addConstants()
184 Constant cst = ((CstInsn) insn).getConstant(); in addConstants()
[all …]
DRopTranslator.java191 public void visitPlainCstInsn(PlainCstInsn insn) { in calculateParamsAreInOrder()
192 if (insn.getOpcode().getOpcode()== RegOps.MOVE_PARAM) { in calculateParamsAreInOrder()
194 ((CstInteger) insn.getConstant()).getValue(); in calculateParamsAreInOrder()
198 == insn.getResult().getReg()); in calculateParamsAreInOrder()
299 TargetInsn insn = in outputBlock() local
303 output.add(insn); in outputBlock()
453 private static RegisterSpecList getRegs(Insn insn) { in getRegs() argument
454 return getRegs(insn, insn.getResult()); in getRegs()
467 private static RegisterSpecList getRegs(Insn insn, in getRegs() argument
469 RegisterSpecList regs = insn.getSources(); in getRegs()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DOutputFinisher.java105 private static boolean hasLocalInfo(DalvInsn insn) { in hasLocalInfo() argument
106 if (insn instanceof LocalSnapshot) { in hasLocalInfo()
107 RegisterSpecSet specs = ((LocalSnapshot) insn).getLocals(); in hasLocalInfo()
114 } else if (insn instanceof LocalStart) { in hasLocalInfo()
115 RegisterSpec spec = ((LocalStart) insn).getLocal(); in hasLocalInfo()
146 for (DalvInsn insn : insns) { in getAllConstants()
147 addConstants(result, insn); in getAllConstants()
161 DalvInsn insn) { in addConstants() argument
162 if (insn instanceof CstInsn) { in addConstants()
163 Constant cst = ((CstInsn) insn).getConstant(); in addConstants()
[all …]
DRopTranslator.java184 public void visitPlainCstInsn(PlainCstInsn insn) { in calculateParamsAreInOrder()
185 if (insn.getOpcode().getOpcode()== RegOps.MOVE_PARAM) { in calculateParamsAreInOrder()
187 ((CstInteger) insn.getConstant()).getValue(); in calculateParamsAreInOrder()
191 == insn.getResult().getReg()); in calculateParamsAreInOrder()
292 TargetInsn insn = in outputBlock() local
296 output.add(insn); in outputBlock()
446 private static RegisterSpecList getRegs(Insn insn) { in getRegs() argument
447 return getRegs(insn, insn.getResult()); in getRegs()
460 private static RegisterSpecList getRegs(Insn insn, in getRegs() argument
462 RegisterSpecList regs = insn.getSources(); in getRegs()
[all …]
/dalvik/dx/src/com/android/dx/io/instructions/
DInstructionCodec.java42 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_00X() argument
43 out.write(insn.getOpcodeUnit()); in FORMAT_00X()
59 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_10X() argument
60 out.write(insn.getOpcodeUnit()); in FORMAT_10X()
78 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_12X() argument
80 codeUnit(insn.getOpcodeUnit(), in FORMAT_12X()
81 makeByte(insn.getA(), insn.getB()))); in FORMAT_12X()
99 public void encode(DecodedInstruction insn, CodeOutput out) { in FORMAT_11N() argument
101 codeUnit(insn.getOpcodeUnit(), in FORMAT_11N()
102 makeByte(insn.getA(), insn.getLiteralNibble()))); in FORMAT_11N()
[all …]
/dalvik/dx/src/com/android/dx/ssa/
DNormalSsaInsn.java31 private Insn insn; field in NormalSsaInsn
39 NormalSsaInsn(final Insn insn, final SsaBasicBlock block) { in NormalSsaInsn() argument
40 super(insn.getResult(), block); in NormalSsaInsn()
41 this.insn = insn; in NormalSsaInsn()
47 RegisterSpecList oldSources = insn.getSources(); in mapSourceRegisters()
51 insn = insn.withNewRegisters(getResult(), newSources); in mapSourceRegisters()
64 RegisterSpecList origSources = insn.getSources(); in changeOneSource()
83 insn = insn.withNewRegisters(getResult(), newSources); in changeOneSource()
93 RegisterSpecList origSources = insn.getSources(); in setNewSources()
99 insn = insn.withNewRegisters(getResult(), newSources); in setNewSources()
[all …]
DLiteralOpUpgrader.java86 public void visitMoveInsn(NormalSsaInsn insn) { in run()
91 public void visitPhiInsn(PhiInsn insn) { in run()
96 public void visitNonMoveInsn(NormalSsaInsn insn) { in run()
98 Insn originalRopInsn = insn.getOriginalRopInsn(); in run()
100 RegisterSpecList sources = insn.getSources(); in run()
103 if (tryReplacingWithConstant(insn)) return; in run()
115 replacePlainInsn(insn, sources.withoutFirst(), in run()
118 replacePlainInsn(insn, sources.withoutLast(), in run()
123 insn.upgradeToLiteral(); in run()
131 insn.setNewSources( in run()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/form/
DForm21t.java44 public String insnArgString(DalvInsn insn) { in insnArgString() argument
45 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
46 return regs.get(0).regString() + ", " + branchString(insn); in insnArgString()
51 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
52 return branchComment(insn); in insnCommentString()
63 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
64 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
66 if (!((insn instanceof TargetInsn) && in isCompatible()
72 TargetInsn ti = (TargetInsn) insn; in isCompatible()
78 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm22t.java44 public String insnArgString(DalvInsn insn) { in insnArgString() argument
45 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
47 ", " + branchString(insn); in insnArgString()
52 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
53 return branchComment(insn); in insnCommentString()
64 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
65 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
67 if (!((insn instanceof TargetInsn) && in isCompatible()
74 TargetInsn ti = (TargetInsn) insn; in isCompatible()
80 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm10t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
66 TargetInsn ti = (TargetInsn) insn; in isCompatible()
72 public boolean branchFits(TargetInsn insn) { in branchFits() argument
73 int offset = insn.getTargetOffset(); in branchFits()
[all …]
DForm20t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
66 TargetInsn ti = (TargetInsn) insn; in isCompatible()
72 public boolean branchFits(TargetInsn insn) { in branchFits() argument
73 int offset = insn.getTargetOffset(); in branchFits()
[all …]
DForm31t.java44 public String insnArgString(DalvInsn insn) { in insnArgString() argument
45 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
46 return regs.get(0).regString() + ", " + branchString(insn); in insnArgString()
51 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
52 return branchComment(insn); in insnCommentString()
63 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
64 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
66 if (!((insn instanceof TargetInsn) && in isCompatible()
77 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
78 RegisterSpecList regs = insn.getRegisters(); in compatibleRegs()
[all …]
DForm51l.java47 public String insnArgString(DalvInsn insn) { in insnArgString() argument
48 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
49 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString()
56 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
57 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString()
69 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
70 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
71 if (!((insn instanceof CstInsn) && in isCompatible()
77 CstInsn ci = (CstInsn) insn; in isCompatible()
85 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm31i.java46 public String insnArgString(DalvInsn insn) { in insnArgString() argument
47 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
48 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString()
55 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
56 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString()
68 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
69 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
70 if (!((insn instanceof CstInsn) && in isCompatible()
76 CstInsn ci = (CstInsn) insn; in isCompatible()
88 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm30t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
71 public boolean branchFits(TargetInsn insn) { in branchFits() argument
77 public void writeTo(AnnotatedOutput out, DalvInsn insn) { in writeTo() argument
78 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo()
[all …]
DForm21h.java46 public String insnArgString(DalvInsn insn) { in insnArgString() argument
47 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
48 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString()
55 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
56 RegisterSpecList regs = insn.getRegisters(); in insnCommentString()
57 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString()
72 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
73 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
74 if (!((insn instanceof CstInsn) && in isCompatible()
80 CstInsn ci = (CstInsn) insn; in isCompatible()
[all …]
DForm21s.java46 public String insnArgString(DalvInsn insn) { in insnArgString() argument
47 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
48 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString()
55 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
56 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString()
68 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
69 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
70 if (!((insn instanceof CstInsn) && in isCompatible()
76 CstInsn ci = (CstInsn) insn; in isCompatible()
90 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm22c.java47 public String insnArgString(DalvInsn insn) { in insnArgString() argument
48 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
50 ", " + insn.cstString(); in insnArgString()
55 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
57 return insn.cstComment(); in insnCommentString()
71 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
72 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
73 if (!((insn instanceof CstInsn) && in isCompatible()
80 CstInsn ci = (CstInsn) insn; in isCompatible()
94 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
DForm11n.java46 public String insnArgString(DalvInsn insn) { in insnArgString() argument
47 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
48 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnArgString()
55 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
56 CstLiteralBits value = (CstLiteralBits) ((CstInsn) insn).getConstant(); in insnCommentString()
68 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
69 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
71 if (!((insn instanceof CstInsn) && in isCompatible()
77 CstInsn ci = (CstInsn) insn; in isCompatible()
91 public BitSet compatibleRegs(DalvInsn insn) { in compatibleRegs() argument
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/
DForm21t.java43 public String insnArgString(DalvInsn insn) { in insnArgString() argument
44 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
45 return regs.get(0).regString() + ", " + branchString(insn); in insnArgString()
50 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
51 return branchComment(insn); in insnCommentString()
62 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
63 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
65 if (!((insn instanceof TargetInsn) && in isCompatible()
71 TargetInsn ti = (TargetInsn) insn; in isCompatible()
77 public boolean branchFits(TargetInsn insn) { in branchFits() argument
[all …]
DForm20t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
66 TargetInsn ti = (TargetInsn) insn; in isCompatible()
72 public boolean branchFits(TargetInsn insn) { in branchFits() argument
73 int offset = insn.getTargetOffset(); in branchFits()
[all …]
DForm10t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
66 TargetInsn ti = (TargetInsn) insn; in isCompatible()
72 public boolean branchFits(TargetInsn insn) { in branchFits() argument
73 int offset = insn.getTargetOffset(); in branchFits()
[all …]
DForm22t.java43 public String insnArgString(DalvInsn insn) { in insnArgString() argument
44 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
46 ", " + branchString(insn); in insnArgString()
51 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
52 return branchComment(insn); in insnCommentString()
63 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
64 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
66 if (!((insn instanceof TargetInsn) && in isCompatible()
73 TargetInsn ti = (TargetInsn) insn; in isCompatible()
79 public boolean branchFits(TargetInsn insn) { in branchFits() argument
[all …]
DForm31t.java43 public String insnArgString(DalvInsn insn) { in insnArgString() argument
44 RegisterSpecList regs = insn.getRegisters(); in insnArgString()
45 return regs.get(0).regString() + ", " + branchString(insn); in insnArgString()
50 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
51 return branchComment(insn); in insnCommentString()
62 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
63 RegisterSpecList regs = insn.getRegisters(); in isCompatible()
65 if (!((insn instanceof TargetInsn) && in isCompatible()
76 public boolean branchFits(TargetInsn insn) { in branchFits() argument
88 public void writeTo(AnnotatedOutput out, DalvInsn insn) { in writeTo() argument
[all …]
DForm30t.java42 public String insnArgString(DalvInsn insn) { in insnArgString() argument
43 return branchString(insn); in insnArgString()
48 public String insnCommentString(DalvInsn insn, boolean noteIndices) { in insnCommentString() argument
49 return branchComment(insn); in insnCommentString()
60 public boolean isCompatible(DalvInsn insn) { in isCompatible() argument
61 if (!((insn instanceof TargetInsn) && in isCompatible()
62 (insn.getRegisters().size() == 0))) { in isCompatible()
71 public boolean branchFits(TargetInsn insn) { in branchFits() argument
83 public void writeTo(AnnotatedOutput out, DalvInsn insn) { in writeTo() argument
84 int offset = ((TargetInsn) insn).getTargetOffset(); in writeTo()
[all …]

12345