Class OpSwitch
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)
System.Object.ToString()
Namespace: Cosmos.IL2CPU.ILOpCodes
Assembly: Cosmos.IL2CPU.dll
Syntax
public class OpSwitch : ILOpCode
Constructors
| Improve this Doc View SourceOpSwitch(ILOpCode.Code, Int32, Int32, Int32[], _ExceptionRegionInfo)
Declaration
public OpSwitch(ILOpCode.Code aOpCode, int aPos, int aNextPos, int[] aBranchLocations, _ExceptionRegionInfo aCurrentExceptionRegion)
Parameters
Type | Name | Description |
---|---|---|
ILOpCode.Code | aOpCode | |
System.Int32 | aPos | |
System.Int32 | aNextPos | |
System.Int32[] | aBranchLocations | |
_ExceptionRegionInfo | aCurrentExceptionRegion |
Properties
| Improve this Doc View SourceBranchLocations
Declaration
public int[] BranchLocations { get; }
Property Value
Type | Description |
---|---|
System.Int32[] |
Methods
| Improve this Doc View SourceDoInitStackAnalysis(MethodBase)
Declaration
protected override void DoInitStackAnalysis(MethodBase aMethod)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | aMethod |
Overrides
| Improve this Doc View SourceDoInterpretStackTypes()
Based on updated StackPopTypes, try to update
Declaration
public override void DoInterpretStackTypes()
Overrides
| Improve this Doc View SourceGetNextOpCodePositions()
Declaration
public override List<(bool newGroup, int Position)> GetNextOpCodePositions()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.ValueTuple<System.Boolean, System.Int32>> |
Overrides
| Improve this Doc View SourceGetNumberOfStackPops(MethodBase)
Declaration
public override int GetNumberOfStackPops(MethodBase aMethod)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | aMethod |
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceGetNumberOfStackPushes(MethodBase)
Declaration
public override int GetNumberOfStackPushes(MethodBase aMethod)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.MethodBase | aMethod |
Returns
Type | Description |
---|---|
System.Int32 |