C# 클래스 Mosa.Compiler.Framework.BaseCompiler

Base class for just-in-time and ahead-of-time compilers, which use the Mosa.Compiler.Framework framework.
파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

공개 메소드들

메소드 설명
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