C# Class ABT.BinaryOpSupportingArithmeticOperands

Afficher le fichier Open project: phisiart/C-Compiler

Méthodes publiques

Méthode Description
CGenArithmetic ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. Operate{Float, Double}

CGenDouble ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble

CGenFloat ( CGenState state ) : void

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble

OperateDouble ( CGenState state ) : void

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.

OperateFloat ( CGenState state ) : void

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.

Méthodes protégées

Méthode Description
BinaryOpSupportingArithmeticOperands ( Expr left, Expr right ) : System

Method Details

BinaryOpSupportingArithmeticOperands() protected méthode

protected BinaryOpSupportingArithmeticOperands ( Expr left, Expr right ) : System
left Expr
right Expr
Résultat System

CGenArithmetic() public méthode

1. %st(0) = left, %st(1) = right, stack unchanged 2. Operate{Float, Double}
public CGenArithmetic ( CGenState state ) : void
state CodeGeneration.CGenState
Résultat void

CGenDouble() public méthode

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble
public CGenDouble ( CGenState state ) : void
state CodeGeneration.CGenState
Résultat void

CGenFloat() public méthode

1. %st(0) = left, %st(1) = right, stack unchanged 2. OperateDouble
public CGenFloat ( CGenState state ) : void
state CodeGeneration.CGenState
Résultat void

OperateDouble() public abstract méthode

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.
public abstract OperateDouble ( CGenState state ) : void
state CodeGeneration.CGenState
Résultat void

OperateFloat() public abstract méthode

Before: %st(0) = left, %st(1) = right, stack unchanged. After: 'left op right' stored in the correct register.
public abstract OperateFloat ( CGenState state ) : void
state CodeGeneration.CGenState
Résultat void