C# Class Boo.Lang.Runtime.DispatcherEmitter

Show file Open project: boo/boo-lang

Protected Properties

Property Type Description
_il System.Reflection.Emit.ILGenerator

Public Methods

Method Description
DispatcherEmitter ( Type owner, string dynamicMethodName ) : System
Emit ( ) : Dispatcher

Protected Methods

Method Description
BoxIfNeeded ( Type returnType ) : void
CreateMethodDispatcher ( ) : Dispatcher
DeclareLocal ( Type type ) : LocalBuilder
Dup ( ) : void
EmitArgArrayElement ( int argumentIndex ) : void
EmitCastOrUnbox ( Type type ) : void
EmitCoercion ( Type actualType, Type expectedType, int score ) : void
EmitLoadTargetObject ( Type expectedType ) : void
EmitMethodBody ( ) : void
EmitPromotion ( Type expectedType ) : MethodInfo
EmitReturn ( Type typeOnStack ) : void
IsStobj ( OpCode code ) : bool
LoadLocal ( LocalBuilder value ) : void
StoreLocal ( LocalBuilder value ) : void

Private Methods

Method Description
GetPromotionMethod ( Type type ) : MethodInfo

Method Details

BoxIfNeeded() protected method

protected BoxIfNeeded ( Type returnType ) : void
returnType System.Type
return void

CreateMethodDispatcher() protected method

protected CreateMethodDispatcher ( ) : Dispatcher
return Dispatcher

DeclareLocal() protected method

protected DeclareLocal ( Type type ) : LocalBuilder
type System.Type
return System.Reflection.Emit.LocalBuilder

DispatcherEmitter() public method

public DispatcherEmitter ( Type owner, string dynamicMethodName ) : System
owner System.Type
dynamicMethodName string
return System

Dup() protected method

protected Dup ( ) : void
return void

Emit() public method

public Emit ( ) : Dispatcher
return Dispatcher

EmitArgArrayElement() protected method

protected EmitArgArrayElement ( int argumentIndex ) : void
argumentIndex int
return void

EmitCastOrUnbox() protected method

protected EmitCastOrUnbox ( Type type ) : void
type System.Type
return void

EmitCoercion() protected method

protected EmitCoercion ( Type actualType, Type expectedType, int score ) : void
actualType System.Type
expectedType System.Type
score int
return void

EmitLoadTargetObject() protected method

protected EmitLoadTargetObject ( Type expectedType ) : void
expectedType System.Type
return void

EmitMethodBody() protected abstract method

protected abstract EmitMethodBody ( ) : void
return void

EmitPromotion() protected method

protected EmitPromotion ( Type expectedType ) : MethodInfo
expectedType System.Type
return System.Reflection.MethodInfo

EmitReturn() protected method

protected EmitReturn ( Type typeOnStack ) : void
typeOnStack System.Type
return void

IsStobj() protected method

protected IsStobj ( OpCode code ) : bool
code System.Reflection.Emit.OpCode
return bool

LoadLocal() protected method

protected LoadLocal ( LocalBuilder value ) : void
value System.Reflection.Emit.LocalBuilder
return void

StoreLocal() protected method

protected StoreLocal ( LocalBuilder value ) : void
value System.Reflection.Emit.LocalBuilder
return void

Property Details

_il protected property

protected ILGenerator,System.Reflection.Emit _il
return System.Reflection.Emit.ILGenerator