Chromium Code Reviews| Index: pkg/compiler/lib/src/js_backend/codegen/task.dart |
| diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
| index 16093d3e59fba4c74dbcc207c1f4e0d7c049828f..8307e05130e16872376e2e013cca28e191e946f1 100644 |
| --- a/pkg/compiler/lib/src/js_backend/codegen/task.dart |
| +++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
| @@ -126,7 +126,7 @@ class CpsFunctionCompiler implements FunctionCompiler { |
| return cpsNode; |
| } |
| - static const Pattern PRINT_TYPED_IR_FILTER = null; |
| + static const Pattern PRINT_TYPED_IR_FILTER = ''; |
|
Kevin Millikin (Google)
2015/09/18 09:00:58
I won't commit this change.
|
| String formatTypeMask(TypeMask type) { |
| if (type is UnionTypeMask) { |
| @@ -151,8 +151,9 @@ class CpsFunctionCompiler implements FunctionCompiler { |
| cps.Node node = nodeOrRef is cps.Reference |
| ? nodeOrRef.definition |
| : nodeOrRef; |
| - var type = typePropagator.getType(node); |
| - return type == null ? s : "$s:${formatTypeMask(type.type)}"; |
| + return node is cps.Variable && node.type != null |
| + ? '$s:${formatTypeMask(node.type)}' |
| + : s; |
| } |
| DEBUG_MODE = true; |
| print(new SExpressionStringifier(printType).visit(cpsNode)); |