|
|
@@ -23,20 +23,29 @@ namespace ILRuntime.Runtime.Generated
|
|
|
Type[] args;
|
|
|
Type type = typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>);
|
|
|
args = new Type[]{};
|
|
|
- method = type.GetMethod("Clear", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Clear_0);
|
|
|
- args = new Type[]{};
|
|
|
- method = type.GetMethod("get_Values", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, get_Values_1);
|
|
|
- args = new Type[]{typeof(System.String), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance)};
|
|
|
- method = type.GetMethod("Add", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Add_2);
|
|
|
+ method = type.GetMethod("get_Keys", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_Keys_0);
|
|
|
args = new Type[]{typeof(System.String), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).MakeByRefType()};
|
|
|
method = type.GetMethod("TryGetValue", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, TryGetValue_3);
|
|
|
+ app.RegisterCLRMethodRedirection(method, TryGetValue_1);
|
|
|
args = new Type[]{typeof(System.String)};
|
|
|
method = type.GetMethod("Remove", flag, null, args, null);
|
|
|
- app.RegisterCLRMethodRedirection(method, Remove_4);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Remove_2);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("Clear", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Clear_3);
|
|
|
+ args = new Type[]{typeof(System.String)};
|
|
|
+ method = type.GetMethod("ContainsKey", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, ContainsKey_4);
|
|
|
+ args = new Type[]{typeof(System.String), typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance)};
|
|
|
+ method = type.GetMethod("Add", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, Add_5);
|
|
|
+ args = new Type[]{typeof(System.String)};
|
|
|
+ method = type.GetMethod("get_Item", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_Item_6);
|
|
|
+ args = new Type[]{};
|
|
|
+ method = type.GetMethod("get_Values", flag, null, args, null);
|
|
|
+ app.RegisterCLRMethodRedirection(method, get_Values_7);
|
|
|
|
|
|
args = new Type[]{};
|
|
|
method = type.GetConstructor(flag, null, args, null);
|
|
|
@@ -45,7 +54,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
}
|
|
|
|
|
|
|
|
|
- static StackObject* Clear_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* get_Keys_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -55,48 +64,12 @@ namespace ILRuntime.Runtime.Generated
|
|
|
instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
__intp.Free(ptr_of_this_method);
|
|
|
|
|
|
- instance_of_this_method.Clear();
|
|
|
-
|
|
|
- return __ret;
|
|
|
- }
|
|
|
-
|
|
|
- static StackObject* get_Values_1(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, 1);
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
- instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- var result_of_this_method = instance_of_this_method.Values;
|
|
|
+ var result_of_this_method = instance_of_this_method.Keys;
|
|
|
|
|
|
return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
}
|
|
|
|
|
|
- static StackObject* Add_2(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, 3);
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
- ILRuntime.Runtime.Intepreter.ILTypeInstance value = (ILRuntime.Runtime.Intepreter.ILTypeInstance)typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
- System.String key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
- ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
|
|
|
- System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
- instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
- __intp.Free(ptr_of_this_method);
|
|
|
-
|
|
|
- instance_of_this_method.Add(key, value);
|
|
|
-
|
|
|
- return __ret;
|
|
|
- }
|
|
|
-
|
|
|
- static StackObject* TryGetValue_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* TryGetValue_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -173,7 +146,7 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
- static StackObject* Remove_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
+ static StackObject* Remove_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|
|
|
ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
|
|
|
StackObject* ptr_of_this_method;
|
|
|
@@ -193,6 +166,95 @@ namespace ILRuntime.Runtime.Generated
|
|
|
return __ret + 1;
|
|
|
}
|
|
|
|
|
|
+ static StackObject* Clear_3(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, 1);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
+ instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+
|
|
|
+ instance_of_this_method.Clear();
|
|
|
+
|
|
|
+ return __ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ static StackObject* ContainsKey_4(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.String key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
+ System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
+ instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+
|
|
|
+ var result_of_this_method = instance_of_this_method.ContainsKey(key);
|
|
|
+
|
|
|
+ __ret->ObjectType = ObjectTypes.Integer;
|
|
|
+ __ret->Value = result_of_this_method ? 1 : 0;
|
|
|
+ return __ret + 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ static StackObject* Add_5(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, 3);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ ILRuntime.Runtime.Intepreter.ILTypeInstance value = (ILRuntime.Runtime.Intepreter.ILTypeInstance)typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
+ System.String key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
|
|
|
+ System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
+ instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+
|
|
|
+ instance_of_this_method.Add(key, value);
|
|
|
+
|
|
|
+ return __ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ static StackObject* get_Item_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.String key = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
|
|
|
+ System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
+ instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+
|
|
|
+ var result_of_this_method = instance_of_this_method[key];
|
|
|
+
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
+ }
|
|
|
+
|
|
|
+ static StackObject* get_Values_7(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, 1);
|
|
|
+ ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
|
|
|
+ System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
|
|
|
+ instance_of_this_method = (System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>)typeof(System.Collections.Generic.Dictionary<System.String, ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
|
|
|
+ __intp.Free(ptr_of_this_method);
|
|
|
+
|
|
|
+ var result_of_this_method = instance_of_this_method.Values;
|
|
|
+
|
|
|
+ return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
|
|
|
{
|