C# Class TriAxis.RunSharp.CodeGen

Show file Open project: AqlaSolutions/runsharp Class Usage Examples

Private Properties

Property Type Description
Complete void
EmitGetHelper void
EmitGetHelper_Conversion void
EmitGetHelper_Ref void
EnsureReturnVariable void
ICodeGenContext System.Reflection.Emit.ILGenerator
IDelayedCompletion void
IDelayedDefinition void
ISignatureGen IParameterBasicInfo
ISignatureGen System.Reflection.Emit.ParameterBuilder
LocalInitedFromStack ContextualOperand
LocalInitedFromStack ContextualOperand

Public Methods

Method Description
Arg ( int parameterIndex ) : ContextualOperand

ThisOffset is applied inside

Arg ( string name ) : ContextualOperand
Base ( ) : ContextualOperand
CodeGen ( ICodeGenContext context, bool isOwner = true ) : System
DefineLabel ( ) : Label
ForceResetUnreachableState ( ) : void
Goto ( Label label ) : void
Goto ( string labelName ) : void
Label ( string labelName ) : Label
Local ( ) : ContextualOperand
Local ( Operand init ) : ContextualOperand
Local ( System type ) : ContextualOperand
Local ( System type, Operand init ) : ContextualOperand
Local ( Type type ) : ContextualOperand
Local ( Type type, Operand init ) : ContextualOperand
MarkLabel ( Label label ) : void
PropertyValue ( ) : ContextualOperand
This ( ) : ContextualOperand
this ( string localName ) : Operand

Protected Methods

Method Description
EmitCallHelper ( MethodBase mth, Operand target ) : void
EmitConvHelper ( TypeCode to ) : void
EmitGetHelper ( Operand op, Type desiredType, bool allowExplicitConversion ) : void
EmitI4Helper ( int value ) : void
EmitI8Helper ( long value, bool signed ) : void
EmitLdargHelper ( ushort index ) : void
EmitLdelemHelper ( Type elementType ) : void
EmitLdindHelper ( Type type ) : void
EmitStargHelper ( ushort index ) : void
EmitStelemHelper ( Type elementType, Operand element, bool allowExplicitConversion ) : void
EmitStindHelper ( Type type, Operand value, bool allowExplicitConversion ) : void
GetStelemOpCode ( Type elementType ) : OpCode
GetStindOpCode ( Type type ) : OpCode
WrapExistingLocal ( LocalBuilder local ) : ContextualOperand

Private Methods

Method Description
Complete ( ) : void
EmitGetHelper ( Operand op, Type desiredType, Conversion conv, Type from = null ) : void
EmitGetHelper_Conversion ( Operand op, Type desiredType, Conversion conv, Type from = null ) : void
EmitGetHelper_Ref ( Operand op, Type desiredType ) : void
EnsureReturnVariable ( ) : void
ICodeGenContext ( ) : ILGenerator
IDelayedCompletion ( ) : void
IDelayedDefinition ( ) : void
ISignatureGen ( string parameterName ) : IParameterBasicInfo
ISignatureGen ( int position, ParameterAttributes attributes, string parameterName ) : ParameterBuilder
LocalInitedFromStack ( System type ) : ContextualOperand
LocalInitedFromStack ( Type type ) : ContextualOperand

Method Details

Arg() public method

ThisOffset is applied inside
public Arg ( int parameterIndex ) : ContextualOperand
parameterIndex int
return ContextualOperand

Arg() public method

public Arg ( string name ) : ContextualOperand
name string
return ContextualOperand

Base() public method

public Base ( ) : ContextualOperand
return ContextualOperand

CodeGen() public method

public CodeGen ( ICodeGenContext context, bool isOwner = true ) : System
context ICodeGenContext
isOwner bool
return System

DefineLabel() public method

public DefineLabel ( ) : Label
return System.Reflection.Emit.Label

EmitCallHelper() protected method

protected EmitCallHelper ( MethodBase mth, Operand target ) : void
mth System.Reflection.MethodBase
target Operand
return void

EmitConvHelper() protected method

protected EmitConvHelper ( TypeCode to ) : void
to TypeCode
return void

EmitGetHelper() protected method

protected EmitGetHelper ( Operand op, Type desiredType, bool allowExplicitConversion ) : void
op Operand
desiredType IKVM.Reflection.Type
allowExplicitConversion bool
return void

EmitI4Helper() protected method

protected EmitI4Helper ( int value ) : void
value int
return void

EmitI8Helper() protected method

protected EmitI8Helper ( long value, bool signed ) : void
value long
signed bool
return void

EmitLdargHelper() protected method

protected EmitLdargHelper ( ushort index ) : void
index ushort
return void

EmitLdelemHelper() protected method

protected EmitLdelemHelper ( Type elementType ) : void
elementType IKVM.Reflection.Type
return void

EmitLdindHelper() protected method

protected EmitLdindHelper ( Type type ) : void
type IKVM.Reflection.Type
return void

EmitStargHelper() protected method

protected EmitStargHelper ( ushort index ) : void
index ushort
return void

EmitStelemHelper() protected method

protected EmitStelemHelper ( Type elementType, Operand element, bool allowExplicitConversion ) : void
elementType IKVM.Reflection.Type
element Operand
allowExplicitConversion bool
return void

EmitStindHelper() protected method

protected EmitStindHelper ( Type type, Operand value, bool allowExplicitConversion ) : void
type IKVM.Reflection.Type
value Operand
allowExplicitConversion bool
return void

ForceResetUnreachableState() public method

public ForceResetUnreachableState ( ) : void
return void

GetStelemOpCode() protected static method

protected static GetStelemOpCode ( Type elementType ) : OpCode
elementType IKVM.Reflection.Type
return System.Reflection.Emit.OpCode

GetStindOpCode() protected static method

protected static GetStindOpCode ( Type type ) : OpCode
type IKVM.Reflection.Type
return System.Reflection.Emit.OpCode

Goto() public method

public Goto ( Label label ) : void
label System.Reflection.Emit.Label
return void

Goto() public method

public Goto ( string labelName ) : void
labelName string
return void

Label() public method

public Label ( string labelName ) : Label
labelName string
return System.Reflection.Emit.Label

Local() public method

public Local ( ) : ContextualOperand
return ContextualOperand

Local() public method

public Local ( Operand init ) : ContextualOperand
init Operand
return ContextualOperand

Local() public method

public Local ( System type ) : ContextualOperand
type System
return ContextualOperand

Local() public method

public Local ( System type, Operand init ) : ContextualOperand
type System
init Operand
return ContextualOperand

Local() public method

public Local ( Type type ) : ContextualOperand
type IKVM.Reflection.Type
return ContextualOperand

Local() public method

public Local ( Type type, Operand init ) : ContextualOperand
type IKVM.Reflection.Type
init Operand
return ContextualOperand

MarkLabel() public method

public MarkLabel ( Label label ) : void
label System.Reflection.Emit.Label
return void

PropertyValue() public method

public PropertyValue ( ) : ContextualOperand
return ContextualOperand

This() public method

public This ( ) : ContextualOperand
return ContextualOperand

WrapExistingLocal() protected method

protected WrapExistingLocal ( LocalBuilder local ) : ContextualOperand
local System.Reflection.Emit.LocalBuilder
return ContextualOperand

this() public method

public this ( string localName ) : Operand
localName string
return Operand