} MonoAssemblyBindingInfo;
struct _MonoMethodHeader {
- guint32 code_size;
const unsigned char *code;
- guint16 max_stack;
+#ifdef MONO_SMALL_CONFIG
+ guint16 code_size;
+#else
+ guint32 code_size;
+#endif
+ guint16 max_stack : 15;
+ unsigned int is_transient: 1; /* mono_metadata_free_mh () will actually free this header */
unsigned int num_clauses : 15;
/* if num_locals != 0, then the following apply: */
unsigned int init_locals : 1;
#define MONO_SIZEOF_METHOD_HEADER (sizeof (struct _MonoMethodHeader) - MONO_ZERO_LEN_ARRAY * SIZEOF_VOID_P)
struct _MonoMethodSignature {
- unsigned int hasthis : 1;
- unsigned int explicit_this : 1;
- unsigned int call_convention : 6;
- unsigned int pinvoke : 1;
- unsigned int ref_count : 23;
+ MonoType *ret;
+#ifdef MONO_SMALL_CONFIG
+ guint8 param_count;
+ gint8 sentinelpos;
+ unsigned int generic_param_count : 5;
+#else
guint16 param_count;
gint16 sentinelpos;
- unsigned int generic_param_count : 30;
+ unsigned int generic_param_count : 16;
+#endif
+ unsigned int call_convention : 6;
+ unsigned int hasthis : 1;
+ unsigned int explicit_this : 1;
+ unsigned int pinvoke : 1;
unsigned int is_inflated : 1;
unsigned int has_type_parameters : 1;
- MonoType *ret;
MonoType *params [MONO_ZERO_LEN_ARRAY];
};
MonoImage *mono_image_open_raw (const char *fname, MonoImageOpenStatus *status) MONO_INTERNAL;
+MonoException *mono_get_exception_field_access_msg (const char *msg) MONO_INTERNAL;
+
+MonoException *mono_get_exception_method_access_msg (const char *msg) MONO_INTERNAL;
+
#endif /* __MONO_METADATA_INTERNALS_H__ */