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

Function fieldCode

src/machine.cpp:4592–4620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4590}
4591
4592unsigned fieldCode(Thread* t, unsigned javaCode)
4593{
4594 switch (javaCode) {
4595 case 'B':
4596 return ByteField;
4597 case 'C':
4598 return CharField;
4599 case 'D':
4600 return DoubleField;
4601 case 'F':
4602 return FloatField;
4603 case 'I':
4604 return IntField;
4605 case 'J':
4606 return LongField;
4607 case 'S':
4608 return ShortField;
4609 case 'V':
4610 return VoidField;
4611 case 'Z':
4612 return BooleanField;
4613 case 'L':
4614 case '[':
4615 return ObjectField;
4616
4617 default:
4618 abort(t);
4619 }
4620}
4621
4622unsigned fieldType(Thread* t, unsigned code)
4623{

Callers 5

parseFieldTableFunction · 0.85
marshalArgumentsFunction · 0.85
compileFunction · 0.85
invokeNativeSlowFunction · 0.85
scanMethodSpecFunction · 0.85

Calls 1

abortFunction · 0.50

Tested by

no test coverage detected