|
|
@@ -76,9 +76,6 @@ namespace ILRuntime.Runtime.Generated
|
|
|
args = new Type[]{};
|
|
|
method = type.GetMethod("SetResult", flag, null, args, null);
|
|
|
app.RegisterCLRMethodRedirection(method, SetResult_5);
|
|
|
- args = new Type[]{typeof(System.Runtime.CompilerServices.IAsyncStateMachine)};
|
|
|
- method = type.GetMethod("SetStateMachine", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, SetStateMachine_6);
|
|
|
args = new Type[]{typeof(ET.ETTask), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor)};
|
|
|
if (genericMethods.TryGetValue("AwaitUnsafeOnCompleted", out lst))
|
|
|
{
|
|
|
@@ -87,7 +84,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
if(m.MatchGenericParameters(args, typeof(void), typeof(ET.ETTask).MakeByRefType(), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
|
|
|
{
|
|
|
method = m.MakeGenericMethod(args);
|
|
|
- app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_7);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_6);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -101,7 +98,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
if(m.MatchGenericParameters(args, typeof(void), typeof(System.Runtime.CompilerServices.TaskAwaiter).MakeByRefType(), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
|
|
|
{
|
|
|
method = m.MakeGenericMethod(args);
|
|
|
- app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_8);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_7);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -115,7 +112,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
if(m.MatchGenericParameters(args, typeof(void), typeof(ET.ETTaskCompleted).MakeByRefType(), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
|
|
|
{
|
|
|
method = m.MakeGenericMethod(args);
|
|
|
- app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_9);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_8);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -129,7 +126,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
if(m.MatchGenericParameters(args, typeof(void), typeof(ET.ETTask<System.Boolean>).MakeByRefType(), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
|
|
|
{
|
|
|
method = m.MakeGenericMethod(args);
|
|
|
- app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_10);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_9);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -143,7 +140,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
if(m.MatchGenericParameters(args, typeof(void), typeof(ET.ETTask<UnityEngine.Object[]>).MakeByRefType(), typeof(ET.IAsyncStateMachineClassInheritanceAdaptor.IAsyncStateMachineAdaptor).MakeByRefType()))
|
|
|
{
|
|
|
method = m.MakeGenericMethod(args);
|
|
|
- app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_11);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_10);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -483,30 +480,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* SetStateMachine_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
- {
|
|
|
- ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
- StackObject* ptr_of_this_method;
|
|
|
- StackObject* __ret = ILIntepreter.Minus(__esp, 2);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- System.Runtime.CompilerServices.IAsyncStateMachine @stateMachine = (System.Runtime.CompilerServices.IAsyncStateMachine)typeof(System.Runtime.CompilerServices.IAsyncStateMachine).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
- ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
|
|
|
- ET.ETAsyncTaskMethodBuilder instance_of_this_method = (ET.ETAsyncTaskMethodBuilder)typeof(ET.ETAsyncTaskMethodBuilder).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
|
|
|
-
|
|
|
- instance_of_this_method.SetStateMachine(@stateMachine);
|
|
|
-
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
- WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);
|
|
|
-
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
- return __ret;
|
|
|
- }
|
|
|
-
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* AwaitUnsafeOnCompleted_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -641,7 +615,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* AwaitUnsafeOnCompleted_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -776,7 +750,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* AwaitUnsafeOnCompleted_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -911,7 +885,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* AwaitUnsafeOnCompleted_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -1046,7 +1020,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* AwaitUnsafeOnCompleted_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|