MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / parameterSlots

Method parameterSlots

src/instrument.cpp:133–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
153enum Scope {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected