Class ILOp
Inheritance
System.Object
ILOp
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
public abstract class ILOp
Constructors
|
Improve this Doc
View Source
ILOp(Assembler)
Declaration
protected ILOp(Assembler aAsmblr)
Parameters
Fields
|
Improve this Doc
View Source
Assembler
Declaration
protected readonly Assembler Assembler
Field Value
|
Improve this Doc
View Source
DebugEnabled
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Align(UInt32, UInt32)
Declaration
public static uint Align(uint aSize, uint aAlign)
Parameters
Type |
Name |
Description |
System.UInt32 |
aSize |
|
System.UInt32 |
aAlign |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
DoNullReferenceCheck(Assembler, Boolean, Int32)
Declaration
protected static void DoNullReferenceCheck(Assembler assembler, bool debugEnabled, int stackOffsetToCheck)
Parameters
Type |
Name |
Description |
Assembler |
assembler |
|
System.Boolean |
debugEnabled |
|
System.Int32 |
stackOffsetToCheck |
|
|
Improve this Doc
View Source
EmitExceptionCleanupAfterCall(Assembler, UInt32, UInt32, UInt32)
Emits cleanup code for when an exception occurred inside a method call.
Declaration
public static void EmitExceptionCleanupAfterCall(Assembler aAssembler, uint aReturnSize, uint aStackSizeBeforeCall, uint aTotalArgumentSizeOfMethod)
Parameters
Type |
Name |
Description |
Assembler |
aAssembler |
|
System.UInt32 |
aReturnSize |
|
System.UInt32 |
aStackSizeBeforeCall |
|
System.UInt32 |
aTotalArgumentSizeOfMethod |
|
|
Improve this Doc
View Source
EmitExceptionLogic(Assembler, Il2cpuMethodInfo, ILOpCode, Boolean, Action, String)
Declaration
public static void EmitExceptionLogic(Assembler aAssembler, Il2cpuMethodInfo aMethodInfo, ILOpCode aCurrentOpCode, bool aDoTest, Action aCleanup, string aJumpTargetNoException = null)
Parameters
Type |
Name |
Description |
Assembler |
aAssembler |
|
Il2cpuMethodInfo |
aMethodInfo |
|
ILOpCode |
aCurrentOpCode |
|
System.Boolean |
aDoTest |
|
System.Action |
aCleanup |
|
System.String |
aJumpTargetNoException |
|
|
Improve this Doc
View Source
Execute(Il2cpuMethodInfo, ILOpCode)
Declaration
public abstract void Execute(Il2cpuMethodInfo aMethod, ILOpCode aOpCode)
Parameters
|
Improve this Doc
View Source
GetEBPOffsetForLocal(Il2cpuMethodInfo, Int32)
Declaration
public static uint GetEBPOffsetForLocal(Il2cpuMethodInfo aMethod, int localIndex)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetEBPOffsetForLocalForDebugger(Il2cpuMethodInfo, Int32)
Declaration
public static uint GetEBPOffsetForLocalForDebugger(Il2cpuMethodInfo aMethod, int localIndex)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetFieldsInfo(Type, Boolean)
Declaration
public static List<_FieldInfo> GetFieldsInfo(Type aType, bool includeStatic)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
System.Boolean |
includeStatic |
|
Returns
Type |
Description |
System.Collections.Generic.List<_FieldInfo> |
|
|
Improve this Doc
View Source
GetLabel(Il2cpuMethodInfo)
Declaration
public static string GetLabel(Il2cpuMethodInfo aMethod)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetLabel(Il2cpuMethodInfo, ILOpCode)
Declaration
public static string GetLabel(Il2cpuMethodInfo aMethod, ILOpCode aOpCode)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetLabel(Il2cpuMethodInfo, Int32)
Declaration
public static string GetLabel(Il2cpuMethodInfo aMethod, int aPos)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetLabel(MethodBase)
Declaration
public static string GetLabel(MethodBase aMethod)
Parameters
Type |
Name |
Description |
System.Reflection.MethodBase |
aMethod |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetStackCountForLocal(Il2cpuMethodInfo, Type)
Number of bytes required to store type on stack
Declaration
public static uint GetStackCountForLocal(Il2cpuMethodInfo aMethod, Type aField)
Parameters
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetStorageSize(Type)
Declaration
protected static uint GetStorageSize(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
GetTypeIDLabel(Type)
Declaration
public static string GetTypeIDLabel(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsByRef(Type)
Declaration
public static bool IsByRef(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsIntegerBasedType(Type)
Check if the type is represented as a int by the CLI
Declaration
public static bool IsIntegerBasedType(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsIntegralTypeOrPointer(Type)
Is the type a numeric type or a pointer
Declaration
public static bool IsIntegralTypeOrPointer(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsLongBasedType(Type)
Declaration
public static bool IsLongBasedType(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsObject(Type)
Declaration
public static bool IsObject(Type aPointer)
Parameters
Type |
Name |
Description |
System.Type |
aPointer |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsPointer(Type)
Declaration
public static bool IsPointer(Type aPointer)
Parameters
Type |
Name |
Description |
System.Type |
aPointer |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReferenceType(Type)
Declaration
public static bool IsReferenceType(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSameValueType(Type, Type)
Declaration
public static bool IsSameValueType(Type aType, Type bType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
System.Type |
bType |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Jump_End(Il2cpuMethodInfo)
Declaration
protected static void Jump_End(Il2cpuMethodInfo aMethod)
Parameters
|
Improve this Doc
View Source
ResolveField(FieldInfo)
Declaration
public static _FieldInfo ResolveField(FieldInfo fieldInfo)
Parameters
Type |
Name |
Description |
System.Reflection.FieldInfo |
fieldInfo |
|
Returns
|
Improve this Doc
View Source
ResolveField(Type, String, Boolean)
Declaration
public static _FieldInfo ResolveField(Type aDeclaringType, string aField, bool aOnlyInstance)
Parameters
Type |
Name |
Description |
System.Type |
aDeclaringType |
|
System.String |
aField |
|
System.Boolean |
aOnlyInstance |
|
Returns
|
Improve this Doc
View Source
SignedAlign(Int32, Int32)
Declaration
public static int SignedAlign(int aSize, int aAlign)
Parameters
Type |
Name |
Description |
System.Int32 |
aSize |
|
System.Int32 |
aAlign |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
SizeOfType(Type)
Declaration
public static uint SizeOfType(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TypeIsFloat(Type)
Declaration
protected static bool TypeIsFloat(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TypeIsSigned(Type)
Declaration
public static bool TypeIsSigned(Type aType)
Parameters
Type |
Name |
Description |
System.Type |
aType |
|
Returns
Type |
Description |
System.Boolean |
|