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

Inheritance: Mosa.Compiler.Framework.CIL.BaseInstruction
Exibir arquivo Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
opcode OpCode

Public Methods

Method Description
AllocateVirtualRegisterOrStackSlot ( BaseMethodCompiler compiler, MosaType type ) : Operand
BaseCILInstruction ( OpCode opCode, byte operandCount ) : Mosa.Compiler.MosaTypeSystem

Initializes a new instance of the BaseCILInstruction class.

BaseCILInstruction ( OpCode opCode, byte operandCount, byte resultCount ) : Mosa.Compiler.MosaTypeSystem

Initializes a new instance of the BaseCILInstruction class.

Decode ( InstructionNode ctx, IInstructionDecoder decoder ) : void

Decodes the specified instruction.

DecodeTargets ( IInstructionDecoder decoder ) : bool

Method Details

AllocateVirtualRegisterOrStackSlot() public static method

public static AllocateVirtualRegisterOrStackSlot ( BaseMethodCompiler compiler, MosaType type ) : Operand
compiler BaseMethodCompiler
type MosaType
return Operand

BaseCILInstruction() public method

Initializes a new instance of the BaseCILInstruction class.
public BaseCILInstruction ( OpCode opCode, byte operandCount ) : Mosa.Compiler.MosaTypeSystem
opCode OpCode The op code.
operandCount byte The operand count.
return Mosa.Compiler.MosaTypeSystem

BaseCILInstruction() public method

Initializes a new instance of the BaseCILInstruction class.
public BaseCILInstruction ( OpCode opCode, byte operandCount, byte resultCount ) : Mosa.Compiler.MosaTypeSystem
opCode OpCode The op code.
operandCount byte The operand count.
resultCount byte The result count.
return Mosa.Compiler.MosaTypeSystem

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

DecodeTargets() public method

public DecodeTargets ( IInstructionDecoder decoder ) : bool
decoder IInstructionDecoder
return bool

Property Details

opcode protected_oe property

Holds the CIL opcode
protected OpCode opcode
return OpCode