+2005-02-17 Sebastien Pouliot <sebastien@ximian.com>
+
+ * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
+ it can be reused for MonoClass.
+ * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
+ _LINKDEMAND.
+
2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
* mini.c: Fixed 2 cases where I sent a MonoMethod to managed code
mono_emit_method_call_spilled (cfg, bblock, secman->linkdemandsecurityexception, mono_method_signature (secman->linkdemandsecurityexception), args, ip, NULL);
} else if (cfg->exception_type == MONO_EXCEPTION_NONE) {
/* don't hide previous results */
- cfg->exception_type = MONO_EXCEPTION_SECURITY;
+ cfg->exception_type = MONO_EXCEPTION_SECURITY_LINKDEMAND;
cfg->exception_data = result;
}
}
mono_profiler_method_end_jit (method, MONO_PROFILE_OK);
/* this can only be set if the security manager is active */
- if (cfg->exception_type == MONO_EXCEPTION_SECURITY) {
+ if (cfg->exception_type == MONO_EXCEPTION_SECURITY_LINKDEMAND) {
MonoAssembly *assembly = mono_image_get_assembly (method->klass->image);
MonoReflectionAssembly *refass = (MonoReflectionAssembly*) mono_assembly_get_object (domain, assembly);
MonoReflectionMethod *refmet = mono_method_get_object (domain, method, NULL);
#define MONO_BBLOCK_IS_IN_REGION(bblock, regtype) (((bblock)->region & (0xf << 4)) == (regtype))
-enum {
- MONO_EXCEPTION_NONE = 0,
- MONO_EXCEPTION_SECURITY = 1
- /* add other exception type */
-};
-
/*
* Control Flow Graph and compilation unit information
*/