Home
last modified time | relevance | path

Searched refs:cst (Results 1 – 25 of 257) sorted by relevance

1234567891011

/dalvik/dexgen/src/com/android/dexgen/dex/file/
DValueEncoder.java21 import com.android.dexgen.rop.cst.Constant;
22 import com.android.dexgen.rop.cst.CstAnnotation;
23 import com.android.dexgen.rop.cst.CstArray;
24 import com.android.dexgen.rop.cst.CstBoolean;
25 import com.android.dexgen.rop.cst.CstByte;
26 import com.android.dexgen.rop.cst.CstChar;
27 import com.android.dexgen.rop.cst.CstDouble;
28 import com.android.dexgen.rop.cst.CstEnumRef;
29 import com.android.dexgen.rop.cst.CstFieldRef;
30 import com.android.dexgen.rop.cst.CstFloat;
[all …]
DMemberIdItem.java19 import com.android.dexgen.rop.cst.CstMemberRef;
20 import com.android.dexgen.rop.cst.CstNat;
33 private final CstMemberRef cst; field in MemberIdItem
40 public MemberIdItem(CstMemberRef cst) { in MemberIdItem() argument
41 super(cst.getDefiningClass()); in MemberIdItem()
43 this.cst = cst; in MemberIdItem()
66 CstNat nat = cst.getNat(); in writeTo()
72 out.annotate(0, indexString() + ' ' + cst.toHuman()); in writeTo()
109 return cst; in getRef()
DDexFile.java20 import com.android.dexgen.rop.cst.Constant;
21 import com.android.dexgen.rop.cst.CstBaseMethodRef;
22 import com.android.dexgen.rop.cst.CstEnumRef;
23 import com.android.dexgen.rop.cst.CstFieldRef;
24 import com.android.dexgen.rop.cst.CstString;
25 import com.android.dexgen.rop.cst.CstType;
26 import com.android.dexgen.rop.cst.CstUtf8;
422 /*package*/ void internIfAppropriate(Constant cst) { in internIfAppropriate() argument
423 if (cst instanceof CstString) { in internIfAppropriate()
424 stringIds.intern((CstString) cst); in internIfAppropriate()
[all …]
DStringIdsSection.java19 import com.android.dexgen.rop.cst.Constant;
20 import com.android.dexgen.rop.cst.CstNat;
21 import com.android.dexgen.rop.cst.CstString;
22 import com.android.dexgen.rop.cst.CstUtf8;
59 public IndexedItem get(Constant cst) { in get() argument
60 if (cst == null) { in get()
66 if (cst instanceof CstString) { in get()
67 cst = ((CstString) cst).getString(); in get()
70 IndexedItem result = strings.get((CstUtf8) cst); in get()
/dalvik/dx/src/com/android/dx/dex/file/
DValueEncoder.java22 import com.android.dx.rop.cst.Constant;
23 import com.android.dx.rop.cst.CstAnnotation;
24 import com.android.dx.rop.cst.CstArray;
25 import com.android.dx.rop.cst.CstBoolean;
26 import com.android.dx.rop.cst.CstByte;
27 import com.android.dx.rop.cst.CstChar;
28 import com.android.dx.rop.cst.CstDouble;
29 import com.android.dx.rop.cst.CstEnumRef;
30 import com.android.dx.rop.cst.CstFieldRef;
31 import com.android.dx.rop.cst.CstFloat;
[all …]
DMemberIdItem.java20 import com.android.dx.rop.cst.CstMemberRef;
21 import com.android.dx.rop.cst.CstNat;
31 private final CstMemberRef cst; field in MemberIdItem
38 public MemberIdItem(CstMemberRef cst) { in MemberIdItem() argument
39 super(cst.getDefiningClass()); in MemberIdItem()
41 this.cst = cst; in MemberIdItem()
64 CstNat nat = cst.getNat(); in writeTo()
70 out.annotate(0, indexString() + ' ' + cst.toHuman()); in writeTo()
107 return cst; in getRef()
DDexFile.java22 import com.android.dx.rop.cst.Constant;
23 import com.android.dx.rop.cst.CstBaseMethodRef;
24 import com.android.dx.rop.cst.CstEnumRef;
25 import com.android.dx.rop.cst.CstFieldRef;
26 import com.android.dx.rop.cst.CstString;
27 import com.android.dx.rop.cst.CstType;
441 /*package*/ void internIfAppropriate(Constant cst) { in internIfAppropriate() argument
442 if (cst instanceof CstString) { in internIfAppropriate()
443 stringIds.intern((CstString) cst); in internIfAppropriate()
444 } else if (cst instanceof CstType) { in internIfAppropriate()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DCstInsn.java19 import com.android.dexgen.rop.cst.Constant;
27 private final Constant cst; field in CstInsn
39 RegisterSpecList sources, Constant cst) { in CstInsn() argument
42 if (cst == null) { in CstInsn()
46 this.cst = cst; in CstInsn()
52 return cst.toHuman(); in getInlineString()
61 return cst; in getConstant()
72 && cst.equals(((CstInsn)b).getConstant()); in contentEquals()
/dalvik/dx/src/com/android/dx/rop/code/
DCstInsn.java19 import com.android.dx.rop.cst.Constant;
27 private final Constant cst; field in CstInsn
39 RegisterSpecList sources, Constant cst) { in CstInsn() argument
42 if (cst == null) { in CstInsn()
46 this.cst = cst; in CstInsn()
52 return cst.toHuman(); in getInlineString()
61 return cst; in getConstant()
72 && cst.equals(((CstInsn)b).getConstant()); in contentEquals()
DThrowingCstInsn.java19 import com.android.dx.rop.cst.Constant;
20 import com.android.dx.rop.cst.CstString;
44 TypeList catches, Constant cst) { in ThrowingCstInsn() argument
45 super(opcode, position, null, sources, cst); in ThrowingCstInsn()
61 Constant cst = getConstant(); in getInlineString() local
62 String constantString = cst.toHuman(); in getInlineString()
63 if (cst instanceof CstString) { in getInlineString()
64 constantString = ((CstString) cst).toQuoted(); in getInlineString()
DPlainInsn.java19 import com.android.dx.rop.cst.Constant;
20 import com.android.dx.rop.cst.CstInteger;
113 Constant cst = (Constant) firstType; in withSourceLiteral() local
116 newSources, cst); in withSourceLiteral()
118 newSources, cst); in withSourceLiteral()
123 Constant cst = (Constant) lastType; in withSourceLiteral() local
131 if (opcode == RegOps.SUB && cst instanceof CstInteger) { in withSourceLiteral()
133 cst = CstInteger.make(-((CstInteger)cst).getValue()); in withSourceLiteral()
135 newRop = Rops.ropFor(opcode, getResult(), newSources, cst); in withSourceLiteral()
142 getResult(), newSources, cst); in withSourceLiteral()
DDexTranslationAdvice.java19 import com.android.dx.rop.cst.CstInteger;
68 CstInteger cst = (CstInteger) sourceA.getTypeBearer(); in hasConstantOperation() local
69 return cst.fitsIn16Bits(); in hasConstantOperation()
75 CstInteger cst = (CstInteger) sourceB.getTypeBearer(); in hasConstantOperation() local
86 return cst.fitsIn16Bits(); in hasConstantOperation()
91 return cst.fitsIn8Bits(); in hasConstantOperation()
94 CstInteger cst2 = CstInteger.make(-cst.getValue()); in hasConstantOperation()
/dalvik/dx/src/com/android/dx/cf/cst/
DConstantPoolParser.java17 package com.android.dx.cf.cst;
19 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Class;
20 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Double;
21 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Fieldref;
22 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Float;
23 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Integer;
24 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_InterfaceMethodref;
25 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Long;
26 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Methodref;
27 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_NameAndType;
[all …]
/dalvik/dx/src/com/android/dx/cf/attrib/
DAttConstantValue.java19 import com.android.dx.rop.cst.CstDouble;
20 import com.android.dx.rop.cst.CstFloat;
21 import com.android.dx.rop.cst.CstInteger;
22 import com.android.dx.rop.cst.CstLong;
23 import com.android.dx.rop.cst.CstString;
24 import com.android.dx.rop.cst.TypedConstant;
/dalvik/dexgen/src/com/android/dexgen/rop/
DAttConstantValue.java19 import com.android.dexgen.rop.cst.CstDouble;
20 import com.android.dexgen.rop.cst.CstFloat;
21 import com.android.dexgen.rop.cst.CstInteger;
22 import com.android.dexgen.rop.cst.CstLong;
23 import com.android.dexgen.rop.cst.CstString;
24 import com.android.dexgen.rop.cst.TypedConstant;
DMember.java19 import com.android.dexgen.rop.cst.CstNat;
20 import com.android.dexgen.rop.cst.CstType;
21 import com.android.dexgen.rop.cst.CstUtf8;
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/
DForm31c.java24 import com.android.dexgen.rop.cst.Constant;
25 import com.android.dexgen.rop.cst.CstFieldRef;
26 import com.android.dexgen.rop.cst.CstString;
27 import com.android.dexgen.rop.cst.CstType;
105 Constant cst = ci.getConstant(); in isCompatible() local
107 return ((cst instanceof CstType) || in isCompatible()
108 (cst instanceof CstFieldRef) || in isCompatible()
109 (cst instanceof CstString)); in isCompatible()
DForm21c.java24 import com.android.dexgen.rop.cst.Constant;
25 import com.android.dexgen.rop.cst.CstFieldRef;
26 import com.android.dexgen.rop.cst.CstString;
27 import com.android.dexgen.rop.cst.CstType;
111 Constant cst = ci.getConstant(); in isCompatible() local
112 return (cst instanceof CstType) || in isCompatible()
113 (cst instanceof CstFieldRef) || in isCompatible()
114 (cst instanceof CstString); in isCompatible()
DForm22c.java23 import com.android.dexgen.rop.cst.Constant;
24 import com.android.dexgen.rop.cst.CstFieldRef;
25 import com.android.dexgen.rop.cst.CstString;
26 import com.android.dexgen.rop.cst.CstType;
87 Constant cst = ci.getConstant(); in isCompatible() local
88 return (cst instanceof CstType) || in isCompatible()
89 (cst instanceof CstFieldRef); in isCompatible()
/dalvik/dx/src/com/android/dx/ssa/
DConstCollector.java29 import com.android.dx.rop.cst.Constant;
30 import com.android.dx.rop.cst.CstString;
31 import com.android.dx.rop.cst.TypedConstant;
105 TypedConstant cst = constantList.get(i); in run() local
107 = RegisterSpec.make(ssaMeth.makeNewSsaReg(), cst); in run()
109 Rop constRop = Rops.opConst(cst); in run()
113 new PlainCstInsn(Rops.opConst(cst), in run()
115 RegisterSpecList.EMPTY, cst)); in run()
129 StdTypeList.EMPTY, cst)); in run()
144 newRegs.put(cst, result); in run()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DArrayData.java22 import com.android.dx.rop.cst.Constant;
23 import com.android.dx.rop.cst.CstLiteral32;
24 import com.android.dx.rop.cst.CstLiteral64;
25 import com.android.dx.rop.cst.CstType;
124 Constant cst = values.get(i); in writeTo() local
125 out.writeByte((byte) ((CstLiteral32) cst).getIntBits()); in writeTo()
131 Constant cst = values.get(i); in writeTo() local
132 out.writeShort((short) ((CstLiteral32) cst).getIntBits()); in writeTo()
138 Constant cst = values.get(i); in writeTo() local
139 out.writeInt(((CstLiteral32) cst).getIntBits()); in writeTo()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DStdConstantPool.java17 package com.android.dexgen.rop.cst;
96 public void set(int n, Constant cst) { in set() argument
99 boolean cat2 = (cst != null) && cst.isCategory2(); in set()
114 if ((cst != null) && (entries[n] == null)) { in set()
125 entries[n] = cst; in set()
/dalvik/dx/src/com/android/dx/rop/cst/
DStdConstantPool.java17 package com.android.dx.rop.cst;
105 public void set(int n, Constant cst) { in set() argument
108 boolean cat2 = (cst != null) && cst.isCategory2(); in set()
123 if ((cst != null) && (entries[n] == null)) { in set()
134 entries[n] = cst; in set()
/dalvik/dx/src/com/android/dx/cf/direct/
DCodeObserver.java23 import com.android.dx.rop.cst.Constant;
24 import com.android.dx.rop.cst.CstDouble;
25 import com.android.dx.rop.cst.CstFloat;
26 import com.android.dx.rop.cst.CstInteger;
27 import com.android.dx.rop.cst.CstKnownNull;
28 import com.android.dx.rop.cst.CstLong;
29 import com.android.dx.rop.cst.CstType;
98 Constant cst, int value) { in visitConstant() argument
99 if (cst instanceof CstKnownNull) { in visitConstant()
105 if (cst instanceof CstInteger) { in visitConstant()
[all …]
/dalvik/dx/src/com/android/dx/cf/iface/
DMember.java19 import com.android.dx.rop.cst.CstNat;
20 import com.android.dx.rop.cst.CstString;
21 import com.android.dx.rop.cst.CstType;

1234567891011