* interp.c: (ves_exec_method_with_context)
fix CEE_NEWOBJ inside wrapper methods
svn path=/trunk/mono/; revision=19495
2003-10-30 Bernie Solomon <bernard@ugsolutions.com>
* interp.c: (ves_exec_method_with_context)
- we need to lookup internal calls now
- don't free type in CEE_SIZEOF
+ we need to lookup internal calls now.
+ don't free type in CEE_SIZEOF.
+ fix CEE_NEWOBJ inside wrapper methods
2003-10-24 Zoltan Varga <vargaz@freemail.hu>
token = read32 (ip);
ip += 4;
- if (!(child_frame.method = mono_get_method (image, token, NULL)))
+ if (frame->method->wrapper_type != MONO_WRAPPER_NONE)
+ child_frame.method = (MonoMethod *)mono_method_get_wrapper_data (frame->method, token);
+ else
+ child_frame.method = mono_get_method (image, token, NULL);
+ if (!child_frame.method)
THROW_EX (mono_get_exception_missing_method (), ip -5);
csig = child_frame.method->signature;