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

Method initVtable

src/compile.cpp:8528–8536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8526 }
8527
8528 virtual void initVtable(Thread* t, GcClass* c)
8529 {
8530 PROTECT(t, c);
8531 for (int i = c->length() - 1; i >= 0; --i) {
8532 void* thunk
8533 = reinterpret_cast<void*>(virtualThunk(static_cast<MyThread*>(t), i));
8534 c->vtable()[i] = thunk;
8535 }
8536 }
8537
8538 virtual void visitObjects(Thread* vmt, Heap::Visitor* v)
8539 {

Callers 5

makeArrayClassFunction · 0.45
bootJavaClassFunction · 0.45
parseClassFunction · 0.45
resetClassRuntimeStateFunction · 0.45
fixupMethodsFunction · 0.45

Calls 2

virtualThunkFunction · 0.85
lengthMethod · 0.65

Tested by

no test coverage detected