本文整理汇总了C#中IMethodCompiler.GetParameterOperand方法的典型用法代码示例。如果您正苦于以下问题:C# IMethodCompiler.GetParameterOperand方法的具体用法?C# IMethodCompiler.GetParameterOperand怎么用?C# IMethodCompiler.GetParameterOperand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IMethodCompiler
的用法示例。
在下文中一共展示了IMethodCompiler.GetParameterOperand方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LayoutParameters
/// <summary>
/// Lays out all parameters of the method.
/// </summary>
/// <param name="compiler">The method compiler providing the parameters.</param>
/// <param name="cc">The calling convention used to invoke the method, which controls parameter layout.</param>
private void LayoutParameters(IMethodCompiler compiler, ICallingConvention cc)
{
List<StackOperand> paramOps = new List<StackOperand>();
int offset = 0;
if (compiler.Method.Signature.HasThis || compiler.Method.Signature.HasExplicitThis)
++offset;
for (int i = 0; i < compiler.Method.Parameters.Count + offset; ++i)
paramOps.Add((StackOperand)compiler.GetParameterOperand(i));
/*if (compiler.Method.Signature.HasThis || compiler.Method.Signature.HasExplicitThis)
LayoutVariables(paramOps, cc, cc.OffsetOfFirstParameter + 4, -1);
else*/
LayoutVariables(paramOps, cc, cc.OffsetOfFirstParameter, -1);
if (TRACING.TraceInfo)
LogOperands(paramOps);
}
示例2: LayoutParameters
/// <summary>
/// Lays out all parameters of the method.
/// </summary>
/// <param name="compiler">The method compiler providing the parameters.</param>
private void LayoutParameters(IMethodCompiler compiler)
{
List<StackOperand> paramOps = new List<StackOperand>();
int offset = 0;
if (compiler.Method.Signature.HasThis || compiler.Method.Signature.HasExplicitThis)
++offset;
for (int i = 0; i < compiler.Method.Parameters.Count + offset; ++i)
paramOps.Add((StackOperand)compiler.GetParameterOperand(i));
LayoutVariables(paramOps, callingConvention, callingConvention.OffsetOfFirstParameter, -1);
}
示例3: LayoutParameters
/// <summary>
/// Lays out all parameters of the method.
/// </summary>
/// <param name="compiler">The method compiler providing the parameters.</param>
/// <param name="cc">The calling convention used to invoke the method, which controls parameter layout.</param>
private void LayoutParameters(IMethodCompiler compiler, ICallingConvention cc)
{
List<StackOperand> paramOps = new List<StackOperand> ();
for (int i = 0; i < compiler.Method.Parameters.Count; i++)
paramOps.Add ((StackOperand)compiler.GetParameterOperand (i));
LayoutVariables (paramOps, cc, cc.OffsetOfFirstParameter, -1);
if (TRACING.TraceInfo)
LogOperands (paramOps);
}