[Mono-dev] [PATCH] Refactor some uses of MonoGenericContext
Raja R Harinath
harinath at gmail.com
Fri Dec 29 06:43:39 EST 2006
I'm working on removing the need for MonoGenericContext. As a
preliminary, I've refactored some uses of MonoGenericContext and
create it on demand, and also to clarify some invariants. This will
be followed by a few patches to cleanup the existing implementation of
the current generics API, and to document some of the invariants.
Once we have a clear understanding of where we really need to use
MonoGenericContext, we can start thinking about putting it into a more
Insofar as the current usage of MonoGenericContext in the JIT, I think
we could get away with APIs like
MonoClass *mono_method_get_class (MonoMethod *m, gint32 token);
MonoMethod *mono_method_get_method (MonoMethod *m, gint32 token);
and remove all knowledge of MonoGenericContext from the JIT. But,
this won't suffice for open generic types.
So, here's the first step. Ok to apply?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 15343 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061229/9d6b90d6/attachment.bin
More information about the Mono-devel-list