[sgen] Reenable gc-altstack test
[mono.git] / mcs / class / dlr / Runtime / Microsoft.Dynamic / Interpreter / Instructions / CallInstruction.cs
index fc69ed342e38fe2b344cf48a48bf647f5d12ccb7..3875af308b937596c7c4119924ba8f9f2c836a0f 100644 (file)
@@ -55,6 +55,9 @@ namespace Microsoft.Scripting.Interpreter {
                 return GetArrayAccessor(info, argumentCount);
             }
 
+#if FULL_AOT_RUNTIME
+            return new MethodInfoCallInstruction(info, argumentCount);
+#else
             if (ReflectionUtils.IsDynamicMethod(info) || !info.IsStatic && info.DeclaringType.IsValueType()) {
                 return new MethodInfoCallInstruction(info, argumentCount);
             }
@@ -109,7 +112,8 @@ namespace Microsoft.Scripting.Interpreter {
                 }
             }
 
-            return res;            
+            return res;
+#endif
         }
 
         private static CallInstruction GetArrayAccessor(MethodInfo info, int argumentCount) {