| Index: pkg/compiler/lib/src/cps_ir/type_propagation.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
|
| index c890623024e1e45ad795a905543f6b3b1a470fba..bd510873fa9c003b2446ab6dbab8c82c9d2452b2 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
|
| @@ -522,7 +522,8 @@ class _TypePropagationVisitor<T> implements Visitor {
|
| if (opname == "unary-") {
|
| opname = "-";
|
| }
|
| - UnaryOperation operation = constantSystem.lookupUnary(opname);
|
| + UnaryOperation operation = constantSystem.lookupUnary(
|
| + UnaryOperator.parse(opname));
|
| if (operation != null) {
|
| result = operation.fold(lhs.constant);
|
| }
|
| @@ -535,7 +536,8 @@ class _TypePropagationVisitor<T> implements Visitor {
|
| return;
|
| }
|
|
|
| - BinaryOperation operation = constantSystem.lookupBinary(opname);
|
| + BinaryOperation operation = constantSystem.lookupBinary(
|
| + BinaryOperator.parse(opname));
|
| if (operation != null) {
|
| result = operation.fold(lhs.constant, rhs.constant);
|
| }
|
|
|