[Mono-devel-list] Question vtable
Ben Maurer
bmaurer at ximian.com
Tue Nov 30 08:16:56 EST 2004
> Hi,
>
> I am currently trying to understand how callvirt
> works. Could anybody tell me where to find the
> place in the code where the this object of a
> callvirt is inspected for the vtable and
This is in inssel.brg, at the bottom of the file grep for callvirt in that
file and follow it around.
> how the correct method is chosen. Where is the
> code that gets the slot number in the vtable for
> a special token in a callvirt statement?
The code for laying out a vtable starts in mono_class_init (in class.c).
Also, much of object.c has to do with laying out the per-appdomain vtable.
-- Ben
More information about the Mono-devel-list
mailing list