X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fdlr%2FRuntime%2FMicrosoft.Dynamic%2FInterpreter%2FInstructions%2FCallInstruction.cs;h=3875af308b937596c7c4119924ba8f9f2c836a0f;hb=46717b4a552efbe619176828e6d92415275f2e05;hp=fc69ed342e38fe2b344cf48a48bf647f5d12ccb7;hpb=300bacd5213b9d121a835239411742473dbe0b5f;p=mono.git diff --git a/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs b/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs index fc69ed342e3..3875af308b9 100644 --- a/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs +++ b/mcs/class/dlr/Runtime/Microsoft.Dynamic/Interpreter/Instructions/CallInstruction.cs @@ -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) {