C# Класс Mosa.Compiler.Framework.Platform.BaseCallingConvention32Bit

Implements the default 32-bit calling convention.
Наследование: BaseCallingConventionExtended
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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