ABT.BinaryArithmeticOp.CGenValue C# (CSharp) Method

CGenValue() public final method

public final CGenValue ( CGenState state ) : System.Reg
state CodeGeneration.CGenState
return System.Reg
        public override sealed Reg CGenValue(CGenState state) {
            CGenArithmetic(state);
            if (this.Type is FloatType || this.Type is DoubleType) {
                return Reg.ST0;
            } else if (this.Type is LongType || this.Type is ULongType) {
                return Reg.EAX;
            } else {
                throw new InvalidOperationException("Invalid operand type.");
            }
        }
    }