Mercurial > projects > ddmd
comparison dmd/UshrExp.d @ 115:6caaf0256da1
+ interpretation of (non-assign) binary expressions
+ BinExp.isunsigned
+ EqualExp.isBit
author | Trass3r |
---|---|
date | Thu, 02 Sep 2010 01:29:29 +0200 |
parents | e28b18c23469 |
children | 60bb0fe4563e |
comparison
equal
deleted
inserted
replaced
114:e28b18c23469 | 115:6caaf0256da1 |
---|---|
53 return shift_optimize(result, this, &Ushr); | 53 return shift_optimize(result, this, &Ushr); |
54 } | 54 } |
55 | 55 |
56 override Expression interpret(InterState istate) | 56 override Expression interpret(InterState istate) |
57 { | 57 { |
58 assert(false); | 58 return interpretCommon(istate, &Ushr); |
59 } | 59 } |
60 | 60 |
61 override IntRange getIntRange() | 61 override IntRange getIntRange() |
62 { | 62 { |
63 assert(false); | 63 assert(false); |
81 elem *e = el_bin(OPshr, type.totym(), eleft, eright); | 81 elem *e = el_bin(OPshr, type.totym(), eleft, eright); |
82 el_setLoc(e, loc); | 82 el_setLoc(e, loc); |
83 return e; | 83 return e; |
84 } | 84 } |
85 } | 85 } |
86 |