Lines Matching refs:testVal
29 s4 dvmNcgHandlePackedSwitch(const s4* entries, s4 firstKey, u2 size, s4 testVal)
33 if (testVal < firstKey || testVal >= firstKey + size) {
35 testVal, firstKey, firstKey+size-1);
39 assert(testVal - firstKey >= 0 && testVal - firstKey < size);
41 testVal, testVal - firstKey,
42 s4FromSwitchData(&entries[testVal - firstKey]));
43 return s4FromSwitchData(&entries[testVal - firstKey]);
47 s4 dvmJitHandlePackedSwitch(const s4* entries, s4 firstKey, u2 size, s4 testVal)
49 if (testVal < firstKey || testVal >= firstKey + size) {
51 testVal, firstKey, firstKey+size-1);
56 testVal, testVal - firstKey,
57 s4FromSwitchData(&entries[testVal - firstKey]));
58 return 2*s4FromSwitchData(&entries[testVal - firstKey]); //convert from u2 to byte
67 s4 dvmNcgHandleSparseSwitch(const s4* keys, u2 size, s4 testVal)
74 if (k == testVal) {
76 testVal, i, s4FromSwitchData(&entries[i]));
78 } else if (k > testVal) {
83 LOGVV("Value %d not found in switch", testVal);
87 s4 dvmJitHandleSparseSwitch(const s4* keys, u2 size, s4 testVal)
93 if (k == testVal) {
95 testVal, i, s4FromSwitchData(&entries[i]));
97 } else if (k > testVal) {
102 LOGVV("Value %d not found in switch", testVal);