MachineCode Class

Definition

Line 44 of cmsxi/MachineCode.cm

Constructors & Destructor

public nothrow MachineCode(Context& context_)

Member Functions

public inline nothrow long CurrentIndex() const
public nothrow void EmitLineNumberInfo()
public nothrow MachineInstruction* GetInstruction(int opCode, Instruction* inst)
public nothrow MachineInstruction* GetInstruction(int opCode, const String<char>& label)
public nothrow void Print(CodeFormatter& formatter)
public nothrow void Print(const String<char>& filePath)
public nothrow void PrintRange(long startIndex, long endIndex, CodeFormatter& formatter)
public nothrow void PrintRange(long startIndex, long endIndex, CodeFormatter& formatter, int labelWidth)

Member Variables

public Context& context
public uint currentLineNumber
private List<UniquePtr<MachineInstruction>> machineInstructions
private Instruction* prevInst

Constructor& Destructor Details

MachineCode Constructor

public nothrow MachineCode(Context& context_)

Definition
Line 46 of cmsxi/MachineCode.cm


Member Function Details

CurrentIndex Member Function

public inline nothrow long CurrentIndex()

Definition
Line 49 of cmsxi/MachineCode.cm


EmitLineNumberInfo Member Function

public nothrow void EmitLineNumberInfo()

Definition
Line 70 of cmsxi/MachineCode.cm


GetInstruction Member Function

public nothrow MachineInstruction* GetInstruction(int opCode, Instruction* inst)

Definition
Line 59 of cmsxi/MachineCode.cm


GetInstruction Member Function

public nothrow MachineInstruction* GetInstruction(int opCode, const String<char>& label)

Definition
Line 53 of cmsxi/MachineCode.cm


Print Member Function

public nothrow void Print(CodeFormatter& formatter)

Definition
Line 91 of cmsxi/MachineCode.cm


Print Member Function

public nothrow void Print(const String<char>& filePath)

Definition
Line 95 of cmsxi/MachineCode.cm


PrintRange Member Function

public nothrow void PrintRange(long startIndex, long endIndex, CodeFormatter& formatter)

Definition
Line 78 of cmsxi/MachineCode.cm


PrintRange Member Function

public nothrow void PrintRange(long startIndex, long endIndex, CodeFormatter& formatter, int labelWidth)

Definition
Line 82 of cmsxi/MachineCode.cm