if (in_corlib &&
!strcmp ("System.Runtime.CompilerServices", cmethod_klass_name_space) &&
!strcmp ("RuntimeFeature", cmethod_klass_name)) {
- if (!strcmp (cmethod->name, "get_IsDynamicCodeSupported") || !strcmp (cmethod->name, "get_IsDynamicCodeCompiled")) {
+ if (!strcmp (cmethod->name, "get_IsDynamicCodeCompiled")) {
EMIT_NEW_ICONST (cfg, ins, cfg->full_aot ? 0 : 1);
ins->type = STACK_I4;
return ins;
+ } else if (!strcmp (cmethod->name, "get_IsDynamicCodeSupported")) {
+ EMIT_NEW_ICONST (cfg, ins, cfg->full_aot ? (cfg->interp ? 1 : 0) : 1);
+ ins->type = STACK_I4;
+ return ins;
}
}