mw->data = g_list_append (mw->data, data);
- return g_list_length (mw->data);
+ return GUINT32_TO_LE (g_list_length (mw->data));
}
void
mono_mb_emit_native_call (mb, csig, mono_delegate_begin_invoke);
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, sig, res);
return res;
} else
mono_mb_emit_restore_result (mb, sig->ret);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, sig, res);
else
mono_mb_emit_restore_result (mb, sig->ret);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, method, res);
return res;
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, sig, res);
mono_mb_emit_ldloc (mb, 0);
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, csig, 0);
+ res = mono_mb_create_method (mb, csig, sig->param_count + 16);
mono_mb_free (mb);
header = ((MonoMethodNormal *)res)->header;
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, csig, 0);
+ res = mono_mb_create_method (mb, csig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, method, res);
if (!method->addr) {
mono_mb_emit_exception (mb);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, method, res);
return res;
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, csig, 0);
+ res = mono_mb_create_method (mb, csig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, method, res);
return res;
mono_mb_emit_byte (mb, CEE_RET);
- res = mono_mb_create_method (mb, sig, 0);
+ res = mono_mb_create_method (mb, sig, sig->param_count + 16);
mono_mb_free (mb);
g_hash_table_insert (cache, method, res);