| 131 | } |
| 132 | |
| 133 | static u8 parameterSlots(const char* method_sig) { |
| 134 | u8 count = 0; |
| 135 | for (const char* c = method_sig + 1; *c != ')'; ++c) { |
| 136 | if (*c == 'L') { |
| 137 | ++count; |
| 138 | while (*(++c) != ';'); |
| 139 | } else if (*c == '[') { |
| 140 | ++count; |
| 141 | while (*(++c) == '['); |
| 142 | if (*c == 'L') while (*(++c) != ';'); |
| 143 | } else if (*c == 'J' || *c == 'D') { |
| 144 | count += 2; |
| 145 | } else { |
| 146 | ++count; |
| 147 | } |
| 148 | } |
| 149 | return count; |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | enum Scope { |
nothing calls this directly
no outgoing calls
no test coverage detected