|
|
@@ -76,6 +76,9 @@ 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))
|
|
|
{
|
|
|
@@ -84,7 +87,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_6);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_7);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -98,7 +101,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_7);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_8);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -112,7 +115,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_8);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_9);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -126,7 +129,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_9);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_10);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -140,7 +143,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_10);
|
|
|
+ app.RegisterCLRMethodRedirection(method, AwaitUnsafeOnCompleted_11);
|
|
|
|
|
|
break;
|
|
|
}
|
|
|
@@ -480,7 +483,30 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ 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)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -615,7 +641,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret;
|
|
|
}
|
|
|
|
|
|
- static StackObject* AwaitUnsafeOnCompleted_7(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;
|
|
|
@@ -750,7 +776,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_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -885,7 +911,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_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -1020,7 +1046,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_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|