Class Ldarg
Inheritance
System.Object
Ldarg
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Cosmos.IL2CPU.dll
Syntax
[OpCode(ILOpCode.Code.Ldarg)]
public class Ldarg : ILOp
Constructors
|
Improve this Doc
View Source
Ldarg(Assembler)
Declaration
public Ldarg(Assembler aAsmblr)
Parameters
Methods
|
Improve this Doc
View Source
DoExecute(Assembler, Il2cpuMethodInfo, UInt16)
Declaration
public static void DoExecute(Assembler Assembler, Il2cpuMethodInfo aMethod, ushort aParam)
Parameters
|
Improve this Doc
View Source
Execute(Il2cpuMethodInfo, ILOpCode)
Declaration
public override void Execute(Il2cpuMethodInfo aMethod, ILOpCode aOpCode)
Parameters
Overrides
|
Improve this Doc
View Source
GetArgumentDisplacement(Il2cpuMethodInfo, UInt16)
This methods gives the full displacement for an argument. Arguments are in "reverse" order:
public static int Add(int a, int b)
In this situation, argument b is at EBP+8, argument A is at EBP+12
After the method returns, the return value is on the stack. This means, that when the return size is larger than the
total argument size, we need to reserve extra stack:
public static Int64 Convert(int value)
In this situation, argument
value
is at EBP+12
Declaration
public static int GetArgumentDisplacement(Il2cpuMethodInfo aMethod, ushort aIndex)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetArgumentDisplacement(UInt16, Type, Type[], Type, Boolean)
Declaration
public static int GetArgumentDisplacement(ushort aIndex, Type aDeclaringType, Type[] aParameterTypes, Type aReturnType, bool aIsStatic)
Parameters
Type |
Name |
Description |
System.UInt16 |
aIndex |
|
System.Type |
aDeclaringType |
|
System.Type[] |
aParameterTypes |
|
System.Type |
aReturnType |
|
System.Boolean |
aIsStatic |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetArgumentType(Il2cpuMethodInfo, UInt16)
Declaration
public static Type GetArgumentType(Il2cpuMethodInfo aMethod, ushort aParam)
Parameters
Returns
Type |
Description |
System.Type |
|