C# 클래스 Mosa.Compiler.Framework.Platform.BaseCallingConvention32Bit

Implements the default 32-bit calling convention.
상속: BaseCallingConventionExtended
파일 보기 프로젝트 열기: tgiphil/MOSA-Project

보호된 프로퍼티들

프로퍼티 타입 설명
return32BitRegister Register
return64BitRegister Register
returnFloatingPointRegister Register
scratchRegister Register

공개 메소드들

메소드 설명
BaseCallingConvention32Bit ( BaseArchitecture architecture ) : System.Collections.Generic

Initializes a new instance of the BaseCallingConvention32Bit.

MakeCall ( BaseMethodCompiler compiler, Context context ) : void

Expands method call instruction represented by the context to perform the method call.

SetReturnValue ( BaseMethodCompiler compiler, Context context, Operand operand ) : void

Requests the calling convention to create an appropriate move instruction to populate the return value of a method.

비공개 메소드들

메소드 설명
CalculateReturnSize ( BaseMethodCompiler compiler, MosaMethod method ) : int
CalculateReturnSize ( BaseMethodCompiler compiler, Operand result ) : int
CleanupReturnValue ( BaseMethodCompiler compiler, Context context, Operand result ) : void

Cleanups the return value.

FreeStackAfterCall ( BaseMethodCompiler compiler, Context context, int stackSize ) : void

Frees the stack after call.

Push ( BaseMethodCompiler compiler, Context context, Operand operand, int offset, int size, Operand scratch ) : void

Pushes the specified instructions.

PushOperands ( BaseMethodCompiler compiler, Context context, List operands, int space, Operand scratch ) : void

Calculates the remaining space.

PushOperands ( BaseMethodCompiler compiler, Context context, MosaMethod method, List operands, int space, Operand scratch ) : void

Calculates the remaining space.

ReserveStackSizeForCall ( BaseMethodCompiler compiler, Context context, int stackSize, Operand scratch ) : void

Reserves the stack size for call.

메소드 상세

BaseCallingConvention32Bit() 공개 메소드

Initializes a new instance of the BaseCallingConvention32Bit.
public BaseCallingConvention32Bit ( BaseArchitecture architecture ) : System.Collections.Generic
architecture BaseArchitecture The architecture of the calling convention.
리턴 System.Collections.Generic

MakeCall() 공개 메소드

Expands method call instruction represented by the context to perform the method call.
public MakeCall ( BaseMethodCompiler compiler, Context context ) : void
compiler BaseMethodCompiler
context Context The context.
리턴 void

SetReturnValue() 공개 메소드

Requests the calling convention to create an appropriate move instruction to populate the return value of a method.
public SetReturnValue ( BaseMethodCompiler compiler, Context context, Operand operand ) : void
compiler BaseMethodCompiler The compiler.
context Context The context.
operand Operand The operand, that's holding the return value.
리턴 void

프로퍼티 상세

return32BitRegister 보호되어 있는 프로퍼티

protected Register return32BitRegister
리턴 Register

return64BitRegister 보호되어 있는 프로퍼티

protected Register return64BitRegister
리턴 Register

returnFloatingPointRegister 보호되어 있는 프로퍼티

protected Register returnFloatingPointRegister
리턴 Register

scratchRegister 보호되어 있는 프로퍼티

protected Register scratchRegister
리턴 Register