Home
last modified time | relevance | path

Searched refs:cases (Results 1 – 25 of 32) sorted by relevance

12

/dalvik/dx/src/com/android/dx/dex/code/
DSwitchData.java39 private final IntList cases; field in SwitchData
62 IntList cases, CodeAddress[] targets) { in SwitchData() argument
69 if (cases == null) { in SwitchData()
77 int sz = cases.size(); in SwitchData()
88 this.cases = cases; in SwitchData()
90 this.packed = shouldPack(cases); in SwitchData()
96 return packed ? (int) packedCodeSize(cases) : in codeSize()
97 (int) sparseCodeSize(cases); in codeSize()
108 int firstCase = (sz == 0) ? 0 : cases.get(0); in writeTo()
109 int lastCase = (sz == 0) ? 0 : cases.get(sz - 1); in writeTo()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DSwitchData.java38 private final IntList cases; field in SwitchData
61 IntList cases, CodeAddress[] targets) { in SwitchData() argument
68 if (cases == null) { in SwitchData()
76 int sz = cases.size(); in SwitchData()
87 this.cases = cases; in SwitchData()
89 this.packed = shouldPack(cases); in SwitchData()
95 return packed ? (int) packedCodeSize(cases) : in codeSize()
96 (int) sparseCodeSize(cases); in codeSize()
107 int firstCase = (sz == 0) ? 0 : cases.get(0); in writeTo()
108 int lastCase = (sz == 0) ? 0 : cases.get(sz - 1); in writeTo()
[all …]
/dalvik/dx/src/com/android/dx/rop/code/
DSwitchInsn.java30 private final IntList cases; field in SwitchInsn
42 RegisterSpecList sources, IntList cases) { in SwitchInsn() argument
49 if (cases == null) { in SwitchInsn()
53 this.cases = cases; in SwitchInsn()
59 return cases.toString(); in getInlineString()
86 cases); in withRegisterOffset()
108 cases); in withNewRegisters()
117 return cases; in getCases()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DSwitchInsn.java30 private final IntList cases; field in SwitchInsn
42 RegisterSpecList sources, IntList cases) { in SwitchInsn() argument
49 if (cases == null) { in SwitchInsn()
53 this.cases = cases; in SwitchInsn()
59 return cases.toString(); in getInlineString()
86 cases); in withRegisterOffset()
108 cases); in withNewRegisters()
117 return cases; in getCases()
/dalvik/dx/src/com/android/dx/cf/direct/
DCodeObserver.java158 SwitchList cases, int padding) { in visitSwitch() argument
159 int sz = cases.size(); in visitSwitch()
170 sb.append(Hex.s4(cases.getValue(i))); in visitSwitch()
172 sb.append(Hex.u2(cases.getTarget(i))); in visitSwitch()
177 sb.append(Hex.u2(cases.getDefaultTarget())); in visitSwitch()
/dalvik/dx/src/com/android/dx/cf/code/
DBasicBlocker.java257 SwitchList cases, int padding) { in visitSwitch() argument
259 addWorkIfNecessary(cases.getDefaultTarget(), true); in visitSwitch()
261 int sz = cases.size(); in visitSwitch()
263 addWorkIfNecessary(cases.getTarget(i), true); in visitSwitch()
266 targetLists[offset] = cases.getTargets(); in visitSwitch()
DBytecodeArray.java846 SwitchList cases = new SwitchList(count); in parseTableswitch() local
850 cases.add(low + i, target); in parseTableswitch()
852 cases.setDefaultTarget(defaultTarget); in parseTableswitch()
853 cases.removeSuperfluousDefaults(); in parseTableswitch()
854 cases.setImmutable(); in parseTableswitch()
857 visitor.visitSwitch(ByteOps.LOOKUPSWITCH, offset, length, cases, in parseTableswitch()
883 SwitchList cases = new SwitchList(npairs); in parseLookupswitch() local
888 cases.add(match, target); in parseLookupswitch()
890 cases.setDefaultTarget(defaultTarget); in parseLookupswitch()
891 cases.removeSuperfluousDefaults(); in parseLookupswitch()
[all …]
/dalvik/dx/tests/064-dex-array-access/
Dinfo.txt2 a few cases of array access get converted reasonably.
/dalvik/dx/tests/062-dex-synch-method/
Dinfo.txt2 a couple cases of synchronized methods get converted reasonably.
/dalvik/dx/tests/060-dex-call-static/
Dinfo.txt2 a couple cases of static method invocation work properly.
/dalvik/dx/tests/072-dex-switch-edge-cases/
Dinfo.txt2 a bunch of switch op edge cases get converted reasonably.
/dalvik/dx/tests/058-dex-call-direct/
Dinfo.txt2 a couple cases of direct instance method invocation work properly.
/dalvik/dx/tests/070-dex-multianewarray/
Dinfo.txt2 cases of multidimensional array construction get converted reasonably.
/dalvik/dx/tests/057-dex-call-virtual/
Dinfo.txt2 a couple cases of regular virtual method invocation work properly.
/dalvik/dx/tests/061-dex-try-catch/
Dinfo.txt2 a couple cases of try-catch work properly.
/dalvik/dx/tests/066-dex-try-catch-rethrow/
Dinfo.txt1 This is a smoke test of dex conversion, which looks at a few cases of
/dalvik/dx/tests/059-dex-call-super/
Dinfo.txt2 a couple cases of superclass virtual method invocation work properly.
/dalvik/dx/tests/056-dex-call-interface/
Dinfo.txt2 a couple cases of interface method invocation work properly.
/dalvik/dx/tests/046-dex-exceptions/
Dinfo.txt2 a couple simple cases of exception handling get converted reasonably.
/dalvik/dx/tests/068-dex-infinite-loop/
Dinfo.txt2 cases of (potentially) infinite loops translate reasonably.
/dalvik/dx/tests/065-dex-new-array/
Dinfo.txt2 a few cases of array construction get converted reasonably.
/dalvik/dx/tests/063-dex-empty-switch/
Dinfo.txt2 a couple cases of empty (that is, default-only) switch statements
/dalvik/dx/tests/073-dex-null-array-refs/
Dinfo.txt2 a bunch of cases convert reasonably, where necessarily or possibly
/dalvik/dx/tests/067-dex-switch-and-try/
Dinfo.txt1 This is a smoke test of dex conversion, which looks at a couple cases of
/dalvik/dx/tests/034-dex-minimal/
Dinfo.txt1 This is a smoke test of a couple cases of minimal dex creation:

12