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

Method getVMMethod

src/classpath-openjdk.cpp:545–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543 }
544
545 virtual GcMethod* getVMMethod(Thread* t, object jmethod)
546 {
547 return cast<GcMethod>(
548 t,
549 objectClass(t, jmethod) == type(t, GcJmethod::Type)
550 ? cast<GcArray>(t,
551 cast<GcJmethod>(t, jmethod)
552 ->clazz()
553 ->vmClass()
554 ->methodTable())
555 ->body()[cast<GcJmethod>(t, jmethod)->slot()]
556 : cast<GcArray>(t,
557 cast<GcJconstructor>(t, jmethod)
558 ->clazz()
559 ->vmClass()
560 ->methodTable())
561 ->body()[cast<GcJconstructor>(t, jmethod)->slot()]);
562 }
563
564 virtual object makeJField(Thread* t, GcField* vmField)
565 {

Callers

nothing calls this directly

Calls 4

objectClassFunction · 0.85
typeFunction · 0.85
bodyMethod · 0.80
vmClassMethod · 0.80

Tested by

no test coverage detected