diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-02-25 17:10:11 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-02-25 17:11:04 +0400 |
commit | feb5080d23ca3b0d53a13a77ae39c68734907b6a (patch) | |
tree | 0be94f461d53ecd9c44d961a8ebf96fd1adf5a86 /mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs | |
parent | 0eb3bdce8381e19231da9d50dc182068eee248c3 (diff) |
Optimize parameters handling to do much less allocation
Diffstat (limited to 'mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs')
-rw-r--r-- | mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs b/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs index 2172b1e63f1..1c9c3f4c3d1 100644 --- a/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs +++ b/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs @@ -525,7 +525,7 @@ namespace System.Reflection.Emit { emit_int (token); if (opcode.StackBehaviourPop == StackBehaviour.Varpop) - cur_stack -= con.GetParameterCount (); + cur_stack -= con.GetParametersCount (); } public virtual void Emit (OpCode opcode, double arg) @@ -744,7 +744,7 @@ namespace System.Reflection.Emit { cur_stack ++; if (opcode.StackBehaviourPop == StackBehaviour.Varpop) - cur_stack -= meth.GetParameterCount (); + cur_stack -= meth.GetParametersCount (); } private void Emit (OpCode opcode, MethodInfo method, int token) @@ -762,7 +762,7 @@ namespace System.Reflection.Emit { cur_stack ++; if (opcode.StackBehaviourPop == StackBehaviour.Varpop) - cur_stack -= method.GetParameterCount (); + cur_stack -= method.GetParametersCount (); } [CLSCompliant(false)] |