| 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 '../compiler.dart' show Compiler; | 7 import '../compiler.dart' show Compiler; |
| 8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
| 9 import '../resolution/operators.dart'; | 9 import '../resolution/operators.dart'; |
| 10 import '../tree/dartstring.dart' show DartString; | 10 import '../tree/dartstring.dart' show DartString; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 BinaryOperation get greaterEqual; | 41 BinaryOperation get greaterEqual; |
| 42 BinaryOperation get greater; | 42 BinaryOperation get greater; |
| 43 BinaryOperation get identity; | 43 BinaryOperation get identity; |
| 44 BinaryOperation get ifNull; | 44 BinaryOperation get ifNull; |
| 45 BinaryOperation get lessEqual; | 45 BinaryOperation get lessEqual; |
| 46 BinaryOperation get less; | 46 BinaryOperation get less; |
| 47 BinaryOperation get modulo; | 47 BinaryOperation get modulo; |
| 48 BinaryOperation get multiply; | 48 BinaryOperation get multiply; |
| 49 UnaryOperation get negate; | 49 UnaryOperation get negate; |
| 50 UnaryOperation get not; | 50 UnaryOperation get not; |
| 51 BinaryOperation get remainder; |
| 51 BinaryOperation get shiftLeft; | 52 BinaryOperation get shiftLeft; |
| 52 BinaryOperation get shiftRight; | 53 BinaryOperation get shiftRight; |
| 53 BinaryOperation get subtract; | 54 BinaryOperation get subtract; |
| 54 BinaryOperation get truncatingDivide; | 55 BinaryOperation get truncatingDivide; |
| 55 | 56 |
| 56 BinaryOperation get codeUnitAt; | 57 BinaryOperation get codeUnitAt; |
| 57 UnaryOperation get round; | 58 UnaryOperation get round; |
| 58 | 59 |
| 59 const ConstantSystem(); | 60 const ConstantSystem(); |
| 60 | 61 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 return greaterEqual; | 139 return greaterEqual; |
| 139 case BinaryOperatorKind.EQ: | 140 case BinaryOperatorKind.EQ: |
| 140 return equal; | 141 return equal; |
| 141 case BinaryOperatorKind.IF_NULL: | 142 case BinaryOperatorKind.IF_NULL: |
| 142 return ifNull; | 143 return ifNull; |
| 143 default: | 144 default: |
| 144 return null; | 145 return null; |
| 145 } | 146 } |
| 146 } | 147 } |
| 147 } | 148 } |
| OLD | NEW |