1 #ifndef __MONO_METADATA_CLASS_INTERBALS_H__
2 #define __MONO_METADATA_CLASS_INTERBALS_H__
4 #include <mono/metadata/class.h>
5 #include <mono/metadata/object.h>
6 #include <mono/io-layer/io-layer.h>
7 #include "mono/utils/mono-compiler.h"
9 #define MONO_CLASS_IS_ARRAY(c) ((c)->rank)
11 #define MONO_DEFAULT_SUPERTABLE_SIZE 6
13 extern gboolean mono_print_vtable;
15 typedef void (*MonoStackWalkImpl) (MonoStackWalk func, gboolean do_il_offset, gpointer user_data);
17 typedef struct _MonoMethodNormal MonoMethodNormal;
18 typedef struct _MonoMethodWrapper MonoMethodWrapper;
19 typedef struct _MonoMethodInflated MonoMethodInflated;
20 typedef struct _MonoMethodPInvoke MonoMethodPInvoke;
23 #define WRAPPER(e,n) MONO_WRAPPER_ ## e,
24 #include "wrapper-types.h"
30 MONO_TYPE_NAME_FORMAT_IL,
31 MONO_TYPE_NAME_FORMAT_REFLECTION,
32 MONO_TYPE_NAME_FORMAT_FULL_NAME,
33 MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED
37 MONO_REMOTING_TARGET_UNKNOWN,
38 MONO_REMOTING_TARGET_APPDOMAIN,
39 MONO_REMOTING_TARGET_COMINTEROP
43 guint16 flags; /* method flags */
44 guint16 iflags; /* method implementation flags */
47 MonoMethodSignature *signature;
48 MonoGenericContainer *generic_container;
49 /* name is useful mostly for debugging */
51 /* this is used by the inlining algorithm */
52 unsigned int inline_info:1;
53 unsigned int uses_this:1;
54 unsigned int wrapper_type:5;
55 unsigned int string_ctor:1;
56 unsigned int save_lmf:1;
57 unsigned int dynamic:1; /* created & destroyed during runtime */
58 unsigned int is_inflated:1; /* whether we're a MonoMethodInflated */
59 unsigned int skip_visibility:1; /* whenever to skip JIT visibility checks */
63 struct _MonoMethodNormal {
65 MonoMethodHeader *header;
68 struct _MonoMethodWrapper {
69 MonoMethodNormal method;
73 struct _MonoMethodPInvoke {
76 /* add marshal info */
77 guint16 piflags; /* pinvoke flags */
78 guint16 implmap_idx; /* index into IMPLMAP */
82 MonoType *generic_type;
83 gpointer reflection_info;
87 * MonoClassField is just a runtime representation of the metadata for
88 * field, it doesn't contain the data directly. Static fields are
89 * stored in MonoVTable->data. Instance fields are allocated in the
90 * objects after the object header.
92 struct _MonoClassField {
93 /* Type of the field */
96 /* If this is an instantiated generic type, this is the
97 * "original" type, ie. the MONO_TYPE_VAR or MONO_TYPE_GENERICINST
98 * it was instantiated from.
100 MonoInflatedField *generic_info;
103 * Offset where this field is stored; if it is an instance
104 * field, it's the offset from the start of the object, if
105 * it's static, it's from the start of the memory chunk
106 * allocated for statics for the class.
113 * If the field is constant, pointer to the metadata constant
115 * If the field has an RVA flag, pointer to the data.
120 /* Type where the field was defined */
124 * If the field is constant, the type of the constant.
126 MonoTypeEnum def_type;
129 /* a field is ignored if it's named "_Deleted" and it has the specialname and rtspecialname flags set */
130 #define mono_field_is_deleted(field) (((field)->type->attrs & (FIELD_ATTRIBUTE_SPECIAL_NAME | FIELD_ATTRIBUTE_RT_SPECIAL_NAME)) \
131 && (strcmp ((field)->name, "_Deleted") == 0))
134 MonoClassField *field;
136 MonoMarshalSpec *mspec;
142 MonoMethod *ptr_to_str;
143 MonoMethod *str_to_ptr;
144 MonoMarshalField fields [MONO_ZERO_LEN_ARRAY];
147 struct _MonoProperty {
165 /* type of exception being "on hold" for later processing (see exception_type) */
167 MONO_EXCEPTION_NONE = 0,
168 MONO_EXCEPTION_SECURITY_LINKDEMAND = 1,
169 MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND = 2,
170 MONO_EXCEPTION_INVALID_PROGRAM = 3,
171 MONO_EXCEPTION_UNVERIFIABLE_IL = 4,
172 MONO_EXCEPTION_MISSING_METHOD = 5,
173 MONO_EXCEPTION_MISSING_FIELD = 6,
174 MONO_EXCEPTION_TYPE_LOAD = 7,
175 MONO_EXCEPTION_FILE_NOT_FOUND = 8,
176 MONO_EXCEPTION_METHOD_ACCESS = 9,
177 MONO_EXCEPTION_FIELD_ACCESS = 10,
178 MONO_EXCEPTION_GENERIC_SHARING_FAILED = 11,
179 MONO_EXCEPTION_BAD_IMAGE = 12
180 /* add other exception type */
183 /* This struct collects the info needed for the runtime use of a class,
184 * like the vtables for a domain, the GC descriptor, etc.
188 /* domain_vtables is indexed by the domain id and the size is max_domain + 1 */
189 MonoVTable *domain_vtables [MONO_ZERO_LEN_ARRAY];
190 } MonoClassRuntimeInfo;
193 /* element class for arrays and enum */
194 MonoClass *element_class;
195 /* used for subtype checks */
196 MonoClass *cast_class;
198 /* for fast subtype checks */
199 MonoClass **supertypes;
202 /* array dimension */
205 int instance_size; /* object instance size */
208 /* We use init_pending to detect cyclic calls to mono_class_init */
209 guint init_pending : 1;
211 /* A class contains static and non static data. Static data can be
212 * of the same type as the class itselfs, but it does not influence
213 * the instance size of the class. To avoid cyclic calls to
214 * mono_class_init (from mono_class_instance_size ()) we first
215 * initialise all non static fields. After that we set size_inited
216 * to 1, because we know the instance size now. After that we
217 * initialise all static fields.
219 guint size_inited : 1;
220 guint valuetype : 1; /* derives from System.ValueType */
221 guint enumtype : 1; /* derives from System.Enum */
222 guint blittable : 1; /* class is blittable */
223 guint unicode : 1; /* class uses unicode char when marshalled */
224 guint wastypebuilder : 1; /* class was created at runtime from a TypeBuilder */
227 guint packing_size : 4;
229 guint ghcimpl : 1; /* class has its own GetHashCode impl */
230 guint has_finalize : 1; /* class has its own Finalize impl */
231 guint marshalbyref : 1; /* class is a MarshalByRefObject */
232 guint contextbound : 1; /* class is a ContextBoundObject */
233 guint delegate : 1; /* class is a Delegate */
234 guint gc_descr_inited : 1; /* gc_descr is initialized */
235 guint has_cctor : 1; /* class has a cctor */
236 guint has_references : 1; /* it has GC-tracked references in the instance */
238 guint has_static_refs : 1; /* it has static fields that are GC-tracked */
239 guint no_special_static_fields : 1; /* has no thread/context static fields */
240 /* directly or indirectly derives from ComImport attributed class.
241 * this means we need to create a proxy for instances of this class
242 * for COM Interop. set this flag on loading so all we need is a quick check
243 * during object creation rather than having to traverse supertypes
245 guint is_com_object : 1;
247 guint8 exception_type; /* MONO_EXCEPTION_* */
248 void* exception_data; /* Additional information about the exception */
251 MonoClass *nested_in;
252 GList *nested_classes;
256 const char *name_space;
258 /* The underlying type of the enum */
259 MonoType *enum_basetype;
261 guint32 declsec_flags; /* declarative security attributes flags */
263 int vtable_size; /* number of slots */
265 guint16 interface_count;
266 guint16 interface_id; /* unique inderface id (for interfaces) */
267 guint16 max_interface_id;
269 guint16 interface_offsets_count;
270 MonoClass **interfaces_packed;
271 guint16 *interface_offsets_packed;
272 guint8 *interface_bitmap;
274 MonoClass **interfaces;
277 int class_size; /* size of area for static fields */
278 int element_size; /* for array types */
282 * From the TypeDef table
286 guint32 first, count;
287 } field, method, property, event;
289 /* loaded on demand */
290 MonoMarshalType *marshal_info;
293 * Field information: Type and location from object base
295 MonoClassField *fields;
297 /* Initialized by a call to mono_class_setup_properties () */
298 MonoProperty *properties;
300 /* Initialized by a call to mono_class_setup_events () */
303 MonoMethod **methods;
305 /* used as the type of the this argument and when passing the arg by value */
309 MonoGenericClass *generic_class;
310 MonoGenericContainer *generic_container;
312 void *reflection_info;
316 MonoClassRuntimeInfo *runtime_info;
318 /* next element in the class_cache hash list (in MonoImage) */
319 MonoClass *next_class_cache;
321 /* Generic vtable. Initialized by a call to mono_class_setup_vtable () */
325 #define MONO_CLASS_IMPLEMENTS_INTERFACE(k,uiid) (((uiid) <= (k)->max_interface_id) && ((k)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7))))
326 int mono_class_interface_offset (MonoClass *klass, MonoClass *itf);
329 gpointer static_data;
332 } MonoRuntimeGenericSuperInfo;
335 gpointer static_data;
338 } MonoRuntimeGenericArgInfo;
342 MonoRuntimeGenericArgInfo arg_infos [MONO_ZERO_LEN_ARRAY];
343 } MonoRuntimeGenericContext;
345 /* the interface_offsets array is stored in memory before this struct */
349 * According to comments in gc_gcj.h, this should be the second word in
353 MonoDomain *domain; /* each object/vtable belongs to exactly one domain */
354 gpointer data; /* to store static class data */
355 gpointer type; /* System.Type type for klass */
356 guint8 *interface_bitmap;
357 guint16 max_interface_id;
359 guint remote : 1; /* class is remotely activated */
360 guint initialized : 1; /* cctor has been run */
361 guint init_failed : 1; /* cctor execution failed */
362 guint32 imt_collisions_bitmap;
363 MonoRuntimeGenericContext *runtime_generic_context;
364 /* do not add any fields after vtable, the structure is dynamically extended */
365 gpointer vtable [MONO_ZERO_LEN_ARRAY];
368 #define MONO_VTABLE_IMPLEMENTS_INTERFACE(vt,uiid) (((uiid) <= (vt)->max_interface_id) && ((vt)->interface_bitmap [(uiid) >> 3] & (1 << ((uiid)&7))))
371 * Generic instantiation data type encoding.
375 * A particular generic instantiation:
377 * All instantiations are cached and we don't distinguish between class and method
378 * instantiations here.
380 struct _MonoGenericInst {
381 guint id; /* unique ID for debugging */
382 guint type_argc : 22; /* number of type arguments */
383 guint is_open : 1; /* if this is an open type */
384 MonoType **type_argv;
388 * The generic context: an instantiation of a set of class and method generic parameters.
390 * NOTE: Never allocate this directly on the heap. It have to be either allocated on the stack,
391 * or embedded within other objects. Don't store pointers to this, because it may be on the stack.
392 * If you really have to, ensure you store a pointer to the embedding object along with it.
394 struct _MonoGenericContext {
395 /* The instantiation corresponding to the class generic parameters */
396 MonoGenericInst *class_inst;
397 /* The instantiation corresponding to the method generic parameters */
398 MonoGenericInst *method_inst;
402 * Inflated generic method.
404 struct _MonoMethodInflated {
407 MonoMethodNormal normal;
408 MonoMethodPInvoke pinvoke;
410 MonoMethod *declaring; /* the generic method definition. */
411 MonoGenericContext context; /* The current instantiation */
412 gpointer reflection_info;
416 * A particular instantiation of a generic type.
418 struct _MonoGenericClass {
419 MonoClass *container_class; /* the generic type definition */
420 MonoGenericContext context; /* a context that contains the type instantiation doesn't contain any method instantiation */
421 guint is_dynamic : 1; /* We're a MonoDynamicGenericClass */
422 guint is_tb_open : 1; /* This is the fully open instantiation for a type_builder. Quite ugly, but it's temporary.*/
423 MonoClass *cached_class; /* if present, the MonoClass corresponding to the instantiation. */
427 * This is used when instantiating a generic type definition which is
430 struct _MonoDynamicGenericClass {
431 MonoGenericClass generic_class;
433 MonoMethod **methods;
437 MonoClassField *fields;
438 int count_properties;
439 MonoProperty *properties;
446 * The generic container.
448 * Stores the type parameters of a generic type definition or a generic method definition.
450 struct _MonoGenericContainer {
451 MonoGenericContext context;
452 /* If we're a generic method definition in a generic type definition,
453 the generic container of the containing class. */
454 MonoGenericContainer *parent;
455 /* the generic type definition or the generic method definition corresponding to this container */
461 /* If true, we're a generic method, otherwise a generic type definition. */
462 /* Invariant: parent != NULL => is_method */
464 /* Our type parameters. */
465 MonoGenericParam *type_params;
471 struct _MonoGenericParam {
472 MonoGenericContainer *owner; /* Type or method this parameter was defined in. */
473 MonoClass *pklass; /* The corresponding `MonoClass'. */
477 MonoClass** constraints; /* NULL means end of list */
481 * Class information which might be cached by the runtime in the AOT file for
482 * example. Caching this allows us to avoid computing a generic vtable
483 * (class->vtable) in most cases, saving time and avoiding creation of lots of
484 * MonoMethod structures.
486 typedef struct MonoCachedClassInfo {
488 guint has_finalize : 1;
491 guint has_nested_classes : 1;
493 guint has_references : 1;
494 guint has_static_refs : 1;
495 guint no_special_static_fields : 1;
497 MonoImage *finalize_image;
498 guint32 finalize_token;
499 guint32 instance_size;
501 guint32 packing_size;
503 } MonoCachedClassInfo;
508 gconstpointer wrapper;
509 gconstpointer trampoline;
510 MonoMethodSignature *sig;
514 guint8 exception_type;
515 char *class_name; /* If kind == TYPE */
516 char *assembly_name; /* If kind == TYPE or ASSEMBLY */
517 MonoClass *klass; /* If kind != TYPE */
518 const char *member_name; /* If kind != TYPE */
519 gboolean ref_only; /* If kind == ASSEMBLY */
520 char *msg; /* If kind == BAD_IMAGE */
523 #define mono_class_has_parent(klass,parent) (((klass)->idepth >= (parent)->idepth) && ((klass)->supertypes [(parent)->idepth - 1] == (parent)))
526 gulong new_object_count;
527 gulong initialized_class_count;
528 gulong generic_vtable_count;
529 gulong used_class_count;
531 gulong class_vtable_size;
532 gulong class_static_data_size;
533 gulong generic_instance_count;
534 gulong generic_class_count;
535 gulong inflated_method_count;
536 gulong inflated_method_count_2;
537 gulong inflated_type_count;
538 gulong generics_metadata_size;
539 gulong dynamic_code_alloc_count;
540 gulong dynamic_code_bytes_count;
541 gulong dynamic_code_frees_count;
542 gulong delegate_creations;
543 gulong imt_tables_size;
544 gulong imt_number_of_tables;
545 gulong imt_number_of_methods;
546 gulong imt_used_slots;
547 gulong imt_slots_with_collisions;
548 gulong imt_max_collisions_in_slot;
549 gulong imt_method_count_when_max_collisions;
550 gulong imt_thunks_size;
551 gulong jit_info_table_insert_count;
552 gulong jit_info_table_remove_count;
553 gulong jit_info_table_lookup_count;
554 gulong hazardous_pointer_count;
555 gulong generics_sharable_methods;
556 gulong generics_unsharable_methods;
557 gulong generics_shared_methods;
558 gulong minor_gc_count;
559 gulong major_gc_count;
560 gulong minor_gc_time_usecs;
561 gulong major_gc_time_usecs;
566 * The definition of the first field in SafeHandle,
567 * Keep in sync with SafeHandle.cs, this is only used
568 * to access the `handle' parameter.
576 * Keep in sync with HandleRef.cs
584 MONO_GENERIC_SHARING_NONE,
585 MONO_GENERIC_SHARING_CORLIB,
586 MONO_GENERIC_SHARING_ALL
589 extern MonoStats mono_stats MONO_INTERNAL;
591 typedef gpointer (*MonoTrampoline) (MonoMethod *method);
592 typedef gpointer (*MonoJumpTrampoline) (MonoDomain *domain, MonoMethod *method, gboolean add_sync_wrapper);
593 typedef gpointer (*MonoRemotingTrampoline) (MonoMethod *method, MonoRemotingTarget target);
594 typedef gpointer (*MonoDelegateTrampoline) (MonoClass *klass);
596 typedef gpointer (*MonoLookupDynamicToken) (MonoImage *image, guint32 token, gboolean valid_token, MonoClass **handle_class, MonoGenericContext *context);
598 typedef gboolean (*MonoGetCachedClassInfo) (MonoClass *klass, MonoCachedClassInfo *res);
600 typedef gboolean (*MonoGetClassFromName) (MonoImage *image, const char *name_space, const char *name, MonoClass **res);
603 mono_classes_init (void) MONO_INTERNAL;
606 mono_classes_cleanup (void) MONO_INTERNAL;
609 mono_class_layout_fields (MonoClass *klass) MONO_INTERNAL;
612 mono_class_setup_interface_offsets (MonoClass *klass) MONO_INTERNAL;
615 mono_class_setup_vtable_general (MonoClass *klass, MonoMethod **overrides, int onum) MONO_INTERNAL;
618 mono_class_setup_vtable (MonoClass *klass) MONO_INTERNAL;
621 mono_class_setup_methods (MonoClass *klass) MONO_INTERNAL;
624 mono_class_setup_mono_type (MonoClass *klass) MONO_INTERNAL;
627 mono_class_setup_parent (MonoClass *klass, MonoClass *parent) MONO_INTERNAL;
630 mono_class_setup_supertypes (MonoClass *klass) MONO_INTERNAL;
633 mono_class_get_implemented_interfaces (MonoClass *klass) MONO_INTERNAL;
636 mono_class_is_open_constructed_type (MonoType *t) MONO_INTERNAL;
639 mono_class_get_overrides_full (MonoImage *image, guint32 type_token, MonoMethod ***overrides, gint32 *num_overrides,
640 MonoGenericContext *generic_context) MONO_INTERNAL;
643 mono_class_get_cctor (MonoClass *klass) MONO_INTERNAL;
646 mono_class_get_finalizer (MonoClass *klass) MONO_INTERNAL;
649 mono_class_needs_cctor_run (MonoClass *klass, MonoMethod *caller) MONO_INTERNAL;
652 mono_class_has_special_static_fields (MonoClass *klass) MONO_INTERNAL;
655 mono_class_get_field_default_value (MonoClassField *field, MonoTypeEnum *def_type) MONO_INTERNAL;
658 mono_install_trampoline (MonoTrampoline func) MONO_INTERNAL;
661 mono_install_jump_trampoline (MonoJumpTrampoline func) MONO_INTERNAL;
664 mono_install_remoting_trampoline (MonoRemotingTrampoline func) MONO_INTERNAL;
667 mono_install_delegate_trampoline (MonoDelegateTrampoline func) MONO_INTERNAL;
670 mono_lookup_dynamic_token (MonoImage *image, guint32 token, MonoGenericContext *context) MONO_INTERNAL;
673 mono_lookup_dynamic_token_class (MonoImage *image, guint32 token, gboolean check_token, MonoClass **handle_class, MonoGenericContext *context) MONO_INTERNAL;
676 mono_install_lookup_dynamic_token (MonoLookupDynamicToken func) MONO_INTERNAL;
679 mono_runtime_create_jump_trampoline (MonoDomain *domain, MonoMethod *method, gboolean add_sync_wrapper) MONO_INTERNAL;
682 mono_runtime_create_delegate_trampoline (MonoClass *klass) MONO_INTERNAL;
685 mono_install_get_cached_class_info (MonoGetCachedClassInfo func) MONO_INTERNAL;
688 mono_install_get_class_from_name (MonoGetClassFromName func) MONO_INTERNAL;
691 mono_class_get_context (MonoClass *class) MONO_INTERNAL;
694 mono_method_get_context (MonoMethod *method) MONO_INTERNAL;
697 mono_generic_class_get_context (MonoGenericClass *gclass) MONO_INTERNAL;
700 mono_generic_class_get_class (MonoGenericClass *gclass) MONO_INTERNAL;
703 mono_class_inflate_generic_method_full (MonoMethod *method, MonoClass *klass_hint, MonoGenericContext *context);
706 mono_method_inflated_lookup (MonoMethodInflated* method, gboolean cache) MONO_INTERNAL;
708 MonoMethodSignature *
709 mono_metadata_get_inflated_signature (MonoMethodSignature *sig, MonoGenericContext *context);
712 mono_metadata_free_inflated_signature (MonoMethodSignature *sig);
716 MonoClass *object_class;
717 MonoClass *byte_class;
718 MonoClass *void_class;
719 MonoClass *boolean_class;
720 MonoClass *sbyte_class;
721 MonoClass *int16_class;
722 MonoClass *uint16_class;
723 MonoClass *int32_class;
724 MonoClass *uint32_class;
725 MonoClass *int_class;
726 MonoClass *uint_class;
727 MonoClass *int64_class;
728 MonoClass *uint64_class;
729 MonoClass *single_class;
730 MonoClass *double_class;
731 MonoClass *char_class;
732 MonoClass *string_class;
733 MonoClass *enum_class;
734 MonoClass *array_class;
735 MonoClass *delegate_class;
736 MonoClass *multicastdelegate_class;
737 MonoClass *asyncresult_class;
738 MonoClass *waithandle_class;
739 MonoClass *typehandle_class;
740 MonoClass *fieldhandle_class;
741 MonoClass *methodhandle_class;
742 MonoClass *systemtype_class;
743 MonoClass *monotype_class;
744 MonoClass *exception_class;
745 MonoClass *threadabortexception_class;
746 MonoClass *thread_class;
747 MonoClass *transparent_proxy_class;
748 MonoClass *real_proxy_class;
749 MonoClass *mono_method_message_class;
750 MonoClass *appdomain_class;
751 MonoClass *field_info_class;
752 MonoClass *method_info_class;
753 MonoClass *stringbuilder_class;
754 MonoClass *math_class;
755 MonoClass *stack_frame_class;
756 MonoClass *stack_trace_class;
757 MonoClass *marshal_class;
758 MonoClass *iserializeable_class;
759 MonoClass *serializationinfo_class;
760 MonoClass *streamingcontext_class;
761 MonoClass *typed_reference_class;
762 MonoClass *argumenthandle_class;
763 MonoClass *marshalbyrefobject_class;
764 MonoClass *monitor_class;
765 MonoClass *iremotingtypeinfo_class;
766 MonoClass *runtimesecurityframe_class;
767 MonoClass *executioncontext_class;
768 MonoClass *internals_visible_class;
769 MonoClass *generic_ilist_class;
770 MonoClass *generic_nullable_class;
771 MonoClass *variant_class;
772 MonoClass *com_object_class;
773 MonoClass *com_interop_proxy_class;
774 MonoClass *iunknown_class;
775 MonoClass *idispatch_class;
776 MonoClass *safehandle_class;
777 MonoClass *handleref_class;
778 MonoClass *attribute_class;
779 MonoClass *customattribute_data_class;
782 extern MonoDefaults mono_defaults MONO_INTERNAL;
785 mono_loader_init (void) MONO_INTERNAL;
788 mono_loader_cleanup (void) MONO_INTERNAL;
791 mono_loader_lock (void) MONO_INTERNAL;
794 mono_loader_unlock (void) MONO_INTERNAL;
797 mono_loader_set_error_assembly_load (const char *assembly_name, gboolean ref_only) MONO_INTERNAL;
800 mono_loader_set_error_type_load (const char *class_name, const char *assembly_name) MONO_INTERNAL;
803 mono_loader_set_error_method_load (const char *class_name, const char *member_name) MONO_INTERNAL;
806 mono_loader_set_error_field_load (MonoClass *klass, const char *member_name) MONO_INTERNAL;
808 mono_loader_set_error_bad_image (char *msg) MONO_INTERNAL;
811 mono_loader_error_prepare_exception (MonoLoaderError *error) MONO_INTERNAL;
814 mono_loader_get_last_error (void) MONO_INTERNAL;
817 mono_loader_clear_error (void) MONO_INTERNAL;
820 mono_reflection_init (void) MONO_INTERNAL;
823 mono_icall_init (void) MONO_INTERNAL;
826 mono_icall_cleanup (void) MONO_INTERNAL;
829 mono_method_get_wrapper_data (MonoMethod *method, guint32 id) MONO_INTERNAL;
832 mono_install_stack_walk (MonoStackWalkImpl func) MONO_INTERNAL;
835 mono_metadata_has_generic_params (MonoImage *image, guint32 token) MONO_INTERNAL;
837 MonoGenericContainer *
838 mono_metadata_load_generic_params (MonoImage *image, guint32 token,
839 MonoGenericContainer *parent_container);
842 mono_metadata_load_generic_param_constraints (MonoImage *image, guint32 token,
843 MonoGenericContainer *container);
846 mono_create_icall_signature (const char *sigstr) MONO_INTERNAL;
849 mono_register_jit_icall (gconstpointer func, const char *name, MonoMethodSignature *sig, gboolean is_save) MONO_INTERNAL;
852 mono_register_jit_icall_wrapper (MonoJitICallInfo *info, gconstpointer wrapper) MONO_INTERNAL;
855 mono_find_jit_icall_by_name (const char *name) MONO_INTERNAL;
858 mono_find_jit_icall_by_addr (gconstpointer addr) MONO_INTERNAL;
861 mono_class_set_failure (MonoClass *klass, guint32 ex_type, void *ex_data) MONO_INTERNAL;
864 mono_class_get_exception_for_failure (MonoClass *klass) MONO_INTERNAL;
867 mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format) MONO_INTERNAL;
870 mono_type_get_full_name (MonoClass *class) MONO_INTERNAL;
872 MonoArrayType *mono_dup_array_type (MonoArrayType *a) MONO_INTERNAL;
873 MonoMethodSignature *mono_metadata_signature_deep_dup (MonoMethodSignature *sig) MONO_INTERNAL;
876 mono_image_init_name_cache (MonoImage *image);
878 gboolean mono_class_is_nullable (MonoClass *klass) MONO_INTERNAL;
879 MonoClass *mono_class_get_nullable_param (MonoClass *klass) MONO_INTERNAL;
881 /* object debugging functions, for use inside gdb */
882 void mono_object_describe (MonoObject *obj);
883 void mono_object_describe_fields (MonoObject *obj);
884 void mono_value_describe_fields (MonoClass* klass, const char* addr);
885 void mono_class_describe_statics (MonoClass* klass);
887 /*Enum validation related functions*/
889 mono_type_is_valid_enum_basetype (MonoType * type);
892 mono_class_is_valid_enum (MonoClass *klass);
895 mono_type_get_full (MonoImage *image, guint32 type_token, MonoGenericContext *context) MONO_INTERNAL;
898 mono_generic_class_is_generic_type_definition (MonoGenericClass *gklass) MONO_INTERNAL;
901 mono_type_get_basic_type_from_generic (MonoType *type) MONO_INTERNAL;
904 mono_class_generic_sharing_enabled (MonoClass *class) MONO_INTERNAL;
906 #endif /* __MONO_METADATA_CLASS_INTERBALS_H__ */