Method | Description | |
---|---|---|
CreateObjectArrayFromInstanceParameters ( this g, |
Emits the IL to create a new array (OpCodes.Newarr) of objects and fills it with the actual arguments of the method (parameters are boxed if needed) skipping the very first one: this must be used only inside a method with System.Reflection.CallingConventions.HasThis set.
|
|
LdArg ( this g, int i ) : void |
Emits the IL to push (OpCodes.Ldarg) the actual argument at the given index onto the stack.
|
|
LdArgBox ( this g, |
Emits a LdArg with an optional OpCodes.Box if p's type is a value type or a generic parameter (after a OpCodes.Ldobj if the parameter is by ref). Handles static or instance methods (takes care of System.Reflection.CallingConventions.HasThis bit of the method's CallingConvention).
|
|
LdArgBox ( this g, int idxParameter, |
Emits a LdArg with a OpCodes.Box if parameterType is a value type or a generic parameter (after a OpCodes.Ldobj if the parameter is by ref).
|
|
LdInt32 ( this g, int i ) : void |
Emits the IL to push the integer (emits the best opcode depending on the value: OpCodes.Ldc_I4_0 or OpCodes.Ldc_I4_M1 for instance) value onto the stack.
|
|
LdLoc ( this g, |
Emits the IL to push (OpCodes.Ldloc) the given local on top of the stack.
|
|
RepushActualParameters ( this g, bool startAtArgument0, int count ) : void |
Emits the optimal IL to push the actual parameter values on the stack (OpCodes.Ldarg_0... OpCodes.Ldarg).
|
|
StArg ( this g, int i ) : void |
Emits the IL to pop (OpCodes.Starg) the top of the stack into the actual argument at the given index.
|
|
StLoc ( this g, |
Emits the IL to pop (OpCodes.Stloc) the top of the stack into a local variable.
|
|
StoreDefaultValueForOutParameter ( this g, |
Emits code that sets the parameter (that must be a 'ref' or 'out' parameter) to the default of its type. Handles static or instance methods and value or reference type.
|
public static CreateObjectArrayFromInstanceParameters ( this g, |
||
g | this | This |
array | The local variable. | |
parameters | Type of the method parameters. | |
return | void |
public static LdArg ( this g, int i ) : void | ||
g | this | This |
i | int | Parameter index (0 being the 'this' for instance method). |
return | void |
public static LdArgBox ( this g, |
||
g | this | This |
p | Parameter of the current method. | |
return | void |
public static LdArgBox ( this g, int idxParameter, |
||
g | this | This |
idxParameter | int | Index of the parameter to load on the stack. |
parameterType | Type of the parameter. | |
return | void |
public static LdInt32 ( this g, int i ) : void | ||
g | this | This |
i | int | The integer value to push. |
return | void |
public static LdLoc ( this g, |
||
g | this | This |
local | The local variable to push. | |
return | void |
public static RepushActualParameters ( this g, bool startAtArgument0, int count ) : void | ||
g | this | This |
startAtArgument0 | bool | False to skip the very first argument: for a method instance Arg0 is the 'this' object (see |
count | int | Number of parameters to push. |
return | void |
public static StArg ( this g, int i ) : void | ||
g | this | This |
i | int | Parameter index (0 being the 'this' for instance method). |
return | void |
public static StLoc ( this g, |
||
g | this | This |
local | The local variable to pop. | |
return | void |
public static StoreDefaultValueForOutParameter ( this g, |
||
g | this | This |
byRefParameter | The 'by ref' parameter. | |
return | void |