Bugzilla – Bug 315461
[PATCH] avoid callvirt with ctors
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by bmaurer@users.sf.net 2004-07-12 13:42:17 MST ---- We call constructors with the callvirt convention. So, a ctor becomes <allocate> <push args> callvirt .ctor By using `call' we avoid the nullcheck which reduces code size. what is returned from the allocator will never be null -- if we are out of memory we throw an exception. ---- Additional Comments From bmaurer@users.sf.net 2004-07-12 13:42:33 MST ---- Created an attachment (id=166442) mini-ctor-no-callvirt.patch ---- Additional Comments From vargaz@freemail.hu 2004-08-14 12:33:43 MST ---- This patch causes tests/context-static.exe to fail, possibly because avoiding a virtual call also causes us to avoid all the stuff in mini_emit_virtual_call, like the calling of the remoting invoke wrappers. ---- Additional Comments From bmaurer@users.sf.net 2004-08-30 16:50:01 MST ---- Created an attachment (id=166443) Fix issue that zoltan found ---- Additional Comments From vargaz@gmail.com 2005-03-27 17:28:32 MST ---- I think this is ok to check in. Sorry I missed the modified patch. ---- Additional Comments From vargaz@gmail.com 2005-03-29 17:32:13 MST ---- Patch checked in. Imported an attachment (id=166442) Imported an attachment (id=166443) Unknown operating system unknown. Setting to default OS "Other".