Esempio n. 1
0
        internal static Instruction CreateUntypedInstruction(CallSiteBinder binder, int argCount)
        {
            // DLR Ref.Emits an UpdateAndExecute delegate for sites with more than 10 parameters
            if (argCount > 10 && PlatformAdaptationLayer.IsCompactFramework)
            {
                return(null);
            }

            switch (argCount)
            {
                #region Generated Untyped Dynamic Instructions

            // *** BEGIN GENERATED CODE ***
            // generated by function: gen_untyped from: generate_dynamic_instructions.py

            case 0: return(DynamicInstruction <object> .Factory(binder));

            case 1: return(DynamicInstruction <object, object> .Factory(binder));

            case 2: return(DynamicInstruction <object, object, object> .Factory(binder));

            case 3: return(DynamicInstruction <object, object, object, object> .Factory(binder));

            case 4: return(DynamicInstruction <object, object, object, object, object> .Factory(binder));

            case 5: return(DynamicInstruction <object, object, object, object, object, object> .Factory(binder));

            case 6: return(DynamicInstruction <object, object, object, object, object, object, object> .Factory(binder));

            case 7: return(DynamicInstruction <object, object, object, object, object, object, object, object> .Factory(binder));

            case 8: return(DynamicInstruction <object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 9: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 10: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 11: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 12: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 13: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 14: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 15: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

                // *** END GENERATED CODE ***

                #endregion

            default: return(null);
            }
        }
Esempio n. 2
0
        internal static Instruction CreateUntypedInstruction(CallSiteBinder binder, int argCount)
        {
            switch (argCount)
            {
                #region Generated Untyped Dynamic Instructions

            // *** BEGIN GENERATED CODE ***
            // generated by function: gen_untyped from: generate_dynamic_instructions.py

            case 0: return(DynamicInstruction <object> .Factory(binder));

            case 1: return(DynamicInstruction <object, object> .Factory(binder));

            case 2: return(DynamicInstruction <object, object, object> .Factory(binder));

            case 3: return(DynamicInstruction <object, object, object, object> .Factory(binder));

            case 4: return(DynamicInstruction <object, object, object, object, object> .Factory(binder));

            case 5: return(DynamicInstruction <object, object, object, object, object, object> .Factory(binder));

            case 6: return(DynamicInstruction <object, object, object, object, object, object, object> .Factory(binder));

            case 7: return(DynamicInstruction <object, object, object, object, object, object, object, object> .Factory(binder));

            case 8: return(DynamicInstruction <object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 9: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 10: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 11: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 12: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 13: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 14: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

            case 15: return(DynamicInstruction <object, object, object, object, object, object, object, object, object, object, object, object, object, object, object, object> .Factory(binder));

                // *** END GENERATED CODE ***

                #endregion

            default: return(null);
            }
        }
Esempio n. 3
0
 public void EmitDynamic <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TRet>(CallSiteBinder binder)
 {
     Emit(DynamicInstruction <T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TRet> .Factory(binder));
 }
Esempio n. 4
0
 public void EmitDynamic <T0, T1, T2, TRet>(CallSiteBinder binder)
 {
     Emit(DynamicInstruction <T0, T1, T2, TRet> .Factory(binder));
 }