MCPcopy Create free account
hub / github.com/ReadyTalk/avian / parameterFootprint

Function parameterFootprint

src/machine.cpp:5342–5362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5340}
5341
5342unsigned parameterFootprint(Thread* t, const char* s, bool static_)
5343{
5344 unsigned footprint = 0;
5345 for (MethodSpecIterator it(t, s); it.hasNext();) {
5346 switch (*it.next()) {
5347 case 'J':
5348 case 'D':
5349 footprint += 2;
5350 break;
5351
5352 default:
5353 ++footprint;
5354 break;
5355 }
5356 }
5357
5358 if (not static_) {
5359 ++footprint;
5360 }
5361 return footprint;
5362}
5363
5364void addFinalizer(Thread* t, object target, void (*finalize)(Thread*, object))
5365{

Callers 3

invokeListMethod · 0.85
invokeListMethod · 0.85

Calls 2

hasNextMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected