C# Class Mosa.Compiler.Framework.CIL.InvokeInstruction

Base class for instructions, which invoke other functions.
Inheritance: BaseCILInstruction
Show file Open project: tgiphil/MOSA-Project

Public Methods

Method Description
Decode ( InstructionNode ctx, IInstructionDecoder decoder ) : void

Decodes the specified instruction.

InvokeInstruction ( OpCode opcode ) : System

Initializes a new instance of the InvokeInstruction class.

Resolve ( Context ctx, BaseMethodCompiler compiler ) : void

Validates the instruction operands and creates a matching variable for the result.

Protected Methods

Method Description
DecodeInvocationTarget ( InstructionNode ctx, IInstructionDecoder decoder, InvokeSupportFlags flags ) : MosaMethod

Decodes the invocation target.

Private Methods

Method Description
SetInvokeTarget ( InstructionNode context, BaseMethodCompiler compiler, MosaMethod method ) : void

Sets the invoke target.

Method Details

Decode() public method

Decodes the specified instruction.
public Decode ( InstructionNode ctx, IInstructionDecoder decoder ) : void
ctx InstructionNode The context.
decoder IInstructionDecoder The instruction decoder, which holds the code stream.
return void

DecodeInvocationTarget() protected static method

Decodes the invocation target.
protected static DecodeInvocationTarget ( InstructionNode ctx, IInstructionDecoder decoder, InvokeSupportFlags flags ) : MosaMethod
ctx InstructionNode The context.
decoder IInstructionDecoder The IL decoder, which provides decoding functionality.
flags InvokeSupportFlags Flags, which control the
return MosaMethod

InvokeInstruction() public method

Initializes a new instance of the InvokeInstruction class.
public InvokeInstruction ( OpCode opcode ) : System
opcode OpCode The opcode.
return System

Resolve() public method

Validates the instruction operands and creates a matching variable for the result.
public Resolve ( Context ctx, BaseMethodCompiler compiler ) : void
ctx Context The context.
compiler BaseMethodCompiler The compiler.
return void