C# Класс Mosa.Compiler.Framework.BaseCompiler

Base class for just-in-time and ahead-of-time compilers, which use the Mosa.Compiler.Framework framework.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CompileMethod ( MosaMethod method, BasicBlocks basicBlocks, int threadID ) : void

Compiles the method.

CreateLinkerMethod ( string methodName ) : MosaMethod

Compiles the linker method.

ExecuteCompile ( ) : void
ExecuteThreadedCompile ( int threads ) : void
ExtendCompilerSetup ( ) : void

Extends the compiler setup.

Initialize ( MosaCompiler compiler ) : void

Защищенные методы

Метод Описание
CreateMethodCompiler ( MosaMethod method, BasicBlocks basicBlocks, int threadID ) : BaseMethodCompiler

Creates a method compiler

ExportCounters ( ) : void
GeInternalRuntimeType ( ) : MosaType
GetPlatformInternalRuntimeType ( ) : MosaType
NewCompilerTraceEvent ( CompilerEvent compilerEvent, string message ) : void

Traces the specified compiler event.

NewCompilerTraceEvent ( CompilerEvent compilerEvent, string message, int threadID ) : void

Traces the specified compiler event.

UpdateCounter ( string name, int count ) : void

Updates the counter.

Приватные методы

Метод Описание
CompileWorker ( int threadID ) : void
ExecuteCompilePass ( ) : void
ExecuteThreadedCompilePass ( int threads ) : void
PostCompile ( ) : void

Executes the compiler post compiler stages.

The method iterates the compilation stage chain and runs each stage on the input.

PreCompile ( ) : void

Executes the compiler pre compiler stages.

The method iterates the compilation stage chain and runs each stage on the input.

Описание методов

CompileMethod() публичный Метод

Compiles the method.
public CompileMethod ( MosaMethod method, BasicBlocks basicBlocks, int threadID ) : void
method MosaMethod The method.
basicBlocks BasicBlocks The basic blocks.
threadID int The thread identifier.
Результат void

CreateLinkerMethod() публичный Метод

Compiles the linker method.
public CreateLinkerMethod ( string methodName ) : MosaMethod
methodName string Name of the method.
Результат MosaMethod

CreateMethodCompiler() защищенный абстрактный Метод

Creates a method compiler
protected abstract CreateMethodCompiler ( MosaMethod method, BasicBlocks basicBlocks, int threadID ) : BaseMethodCompiler
method MosaMethod The method to compile.
basicBlocks BasicBlocks The basic blocks.
threadID int The thread identifier.
Результат BaseMethodCompiler

ExecuteCompile() публичный Метод

public ExecuteCompile ( ) : void
Результат void

ExecuteThreadedCompile() публичный Метод

public ExecuteThreadedCompile ( int threads ) : void
threads int
Результат void

ExportCounters() защищенный Метод

protected ExportCounters ( ) : void
Результат void

ExtendCompilerSetup() публичный Метод

Extends the compiler setup.
public ExtendCompilerSetup ( ) : void
Результат void

GeInternalRuntimeType() защищенный Метод

protected GeInternalRuntimeType ( ) : MosaType
Результат MosaType

GetPlatformInternalRuntimeType() защищенный Метод

protected GetPlatformInternalRuntimeType ( ) : MosaType
Результат MosaType

Initialize() публичный Метод

public Initialize ( MosaCompiler compiler ) : void
compiler MosaCompiler
Результат void

NewCompilerTraceEvent() защищенный Метод

Traces the specified compiler event.
protected NewCompilerTraceEvent ( CompilerEvent compilerEvent, string message ) : void
compilerEvent CompilerEvent The compiler event.
message string The message.
Результат void

NewCompilerTraceEvent() защищенный Метод

Traces the specified compiler event.
protected NewCompilerTraceEvent ( CompilerEvent compilerEvent, string message, int threadID ) : void
compilerEvent CompilerEvent The compiler event.
message string The message.
threadID int
Результат void

UpdateCounter() защищенный Метод

Updates the counter.
protected UpdateCounter ( string name, int count ) : void
name string The name.
count int The count.
Результат void