The following code will fill ARG_1 with the pointer to the MethodTable* that's treated as class handle by many parts of the execution engine:
enregisterTOS; mov_register_indirect_to(ARG_1,TOS_REG_1); BTW: It is not possible to get the exact CORINFO_CLASS_HANDLE at JIT time. -Jan This posting is provided "AS IS" with no warranties, and confers no rights. -----Original Message----- From: Discussion of the Rotor Shared Source CLI implementation [mailto:[EMAIL PROTECTED] On Behalf Of Yuan Yu Sent: Monday, January 12, 2004 6:48 PM To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Class handle in FJit::compileCEE_LDFLD How do I get a class handle of the object sitting on the top of the stack in FJit::compileCEE_LDFLD? targetClass is not exactly what I would like to have, since it may return a handle to some superclass of the object. Thanks, -Yuan =================================== This list is hosted by DevelopMentor(r) http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com