C# Class ABT.BinaryOpSupportingIntegralOperands

Show file Open project: phisiart/C-Compiler

Public Methods

Method Description
OperateLong ( CGenState state ) : void

Before calling this method, %eax = Left, %ebx = Right This method should let %eax = %eax op %ebx

OperateULong ( CGenState state ) : void

Before calling this method, %eax = Left, %ebx = Right This method should let %eax = %eax op %ebx

Protected Methods

Method Description
BinaryOpSupportingIntegralOperands ( Expr left, Expr right ) : System
CGenIntegral ( CGenState state ) : void

1. %eax = left, %ebx = right, stack unchanged 2. Operate{Long, ULong}

Private Methods

Method Description
CGenLong ( CGenState state ) : System.Reg
CGenPrepareIntegralOperands ( CGenState state ) : void
CGenULong ( CGenState state ) : System.Reg

Method Details

BinaryOpSupportingIntegralOperands() protected method

protected BinaryOpSupportingIntegralOperands ( Expr left, Expr right ) : System
left Expr
right Expr
return System

CGenIntegral() protected method

1. %eax = left, %ebx = right, stack unchanged 2. Operate{Long, ULong}
protected CGenIntegral ( CGenState state ) : void
state CodeGeneration.CGenState
return void

OperateLong() public abstract method

Before calling this method, %eax = Left, %ebx = Right This method should let %eax = %eax op %ebx
public abstract OperateLong ( CGenState state ) : void
state CodeGeneration.CGenState
return void

OperateULong() public abstract method

Before calling this method, %eax = Left, %ebx = Right This method should let %eax = %eax op %ebx
public abstract OperateULong ( CGenState state ) : void
state CodeGeneration.CGenState
return void