[Mono-devel-list] Question vtable
Massimiliano Mantione
massi at ximian.com
Tue Nov 30 08:40:25 EST 2004
On Tue, 2004-11-30 at 11:01, Christoph Stiedl wrote:
> 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
> 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?
Have you had a look at "mini_emit_virtual_call" in "inssel.brg"?
(it then ends up in inssel.c)
If I understood what you're looking for, it is the code beginning
with "vtable_reg = mono_regstate_next_int (cfg->rs);".
Ciao,
Massi
More information about the Mono-devel-list
mailing list