| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library dart2js.constant_system; | 5 library dart2js.constant_system; |
| 6 | 6 |
| 7 import '../dart_types.dart'; | 7 import '../dart_types.dart'; |
| 8 import '../compiler.dart' show | 8 import '../compiler.dart' show |
| 9 Compiler; | 9 Compiler; |
| 10 import '../resolution/operators.dart'; | 10 import '../resolution/operators.dart'; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 UnaryOperation get bitNot; | 36 UnaryOperation get bitNot; |
| 37 BinaryOperation get bitOr; | 37 BinaryOperation get bitOr; |
| 38 BinaryOperation get bitXor; | 38 BinaryOperation get bitXor; |
| 39 BinaryOperation get booleanAnd; | 39 BinaryOperation get booleanAnd; |
| 40 BinaryOperation get booleanOr; | 40 BinaryOperation get booleanOr; |
| 41 BinaryOperation get divide; | 41 BinaryOperation get divide; |
| 42 BinaryOperation get equal; | 42 BinaryOperation get equal; |
| 43 BinaryOperation get greaterEqual; | 43 BinaryOperation get greaterEqual; |
| 44 BinaryOperation get greater; | 44 BinaryOperation get greater; |
| 45 BinaryOperation get identity; | 45 BinaryOperation get identity; |
| 46 BinaryOperation get ifNull; |
| 46 BinaryOperation get lessEqual; | 47 BinaryOperation get lessEqual; |
| 47 BinaryOperation get less; | 48 BinaryOperation get less; |
| 48 BinaryOperation get modulo; | 49 BinaryOperation get modulo; |
| 49 BinaryOperation get multiply; | 50 BinaryOperation get multiply; |
| 50 UnaryOperation get negate; | 51 UnaryOperation get negate; |
| 51 UnaryOperation get not; | 52 UnaryOperation get not; |
| 52 BinaryOperation get shiftLeft; | 53 BinaryOperation get shiftLeft; |
| 53 BinaryOperation get shiftRight; | 54 BinaryOperation get shiftRight; |
| 54 BinaryOperation get subtract; | 55 BinaryOperation get subtract; |
| 55 BinaryOperation get truncatingDivide; | 56 BinaryOperation get truncatingDivide; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 case BinaryOperatorKind.XOR: return bitXor; | 112 case BinaryOperatorKind.XOR: return bitXor; |
| 112 case BinaryOperatorKind.LOGICAL_OR: return booleanOr; | 113 case BinaryOperatorKind.LOGICAL_OR: return booleanOr; |
| 113 case BinaryOperatorKind.LOGICAL_AND: return booleanAnd; | 114 case BinaryOperatorKind.LOGICAL_AND: return booleanAnd; |
| 114 case BinaryOperatorKind.SHL: return shiftLeft; | 115 case BinaryOperatorKind.SHL: return shiftLeft; |
| 115 case BinaryOperatorKind.SHR: return shiftRight; | 116 case BinaryOperatorKind.SHR: return shiftRight; |
| 116 case BinaryOperatorKind.LT: return less; | 117 case BinaryOperatorKind.LT: return less; |
| 117 case BinaryOperatorKind.LTEQ: return lessEqual; | 118 case BinaryOperatorKind.LTEQ: return lessEqual; |
| 118 case BinaryOperatorKind.GT: return greater; | 119 case BinaryOperatorKind.GT: return greater; |
| 119 case BinaryOperatorKind.GTEQ: return greaterEqual; | 120 case BinaryOperatorKind.GTEQ: return greaterEqual; |
| 120 case BinaryOperatorKind.EQ: return equal; | 121 case BinaryOperatorKind.EQ: return equal; |
| 122 case BinaryOperatorKind.IF_NULL: return ifNull; |
| 121 default: return null; | 123 default: return null; |
| 122 } | 124 } |
| 123 } | 125 } |
| 124 } | 126 } |
| OLD | NEW |