OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.cps_ir.shrinking_reductions; | 5 library dart2js.cps_ir.shrinking_reductions; |
6 | 6 |
7 import 'cps_ir_nodes.dart'; | 7 import 'cps_ir_nodes.dart'; |
8 import 'optimizers.dart'; | 8 import 'optimizers.dart'; |
9 | 9 |
10 /** | 10 /** |
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 processSetIndex(SetIndex node) { | 686 processSetIndex(SetIndex node) { |
687 node.object.parent = node; | 687 node.object.parent = node; |
688 node.index.parent = node; | 688 node.index.parent = node; |
689 node.value.parent = node; | 689 node.value.parent = node; |
690 } | 690 } |
691 | 691 |
692 processAwait(Await node) { | 692 processAwait(Await node) { |
693 node.continuation.parent = node; | 693 node.continuation.parent = node; |
694 node.input.parent = node; | 694 node.input.parent = node; |
695 } | 695 } |
| 696 |
| 697 processRefinement(Refinement node) { |
| 698 node.value.parent = node; |
| 699 } |
696 } | 700 } |
697 | 701 |
698 class _ReductionKind { | 702 class _ReductionKind { |
699 final String name; | 703 final String name; |
700 final int hashCode; | 704 final int hashCode; |
701 | 705 |
702 const _ReductionKind(this.name, this.hashCode); | 706 const _ReductionKind(this.name, this.hashCode); |
703 | 707 |
704 static const _ReductionKind DEAD_VAL = const _ReductionKind('dead-val', 0); | 708 static const _ReductionKind DEAD_VAL = const _ReductionKind('dead-val', 0); |
705 static const _ReductionKind DEAD_CONT = const _ReductionKind('dead-cont', 1); | 709 static const _ReductionKind DEAD_CONT = const _ReductionKind('dead-cont', 1); |
(...skipping 26 matching lines...) Expand all Loading... |
732 } | 736 } |
733 | 737 |
734 String toString() => "$kind: $node"; | 738 String toString() => "$kind: $node"; |
735 } | 739 } |
736 | 740 |
737 /// A dummy class used solely to mark nodes as deleted once they are removed | 741 /// A dummy class used solely to mark nodes as deleted once they are removed |
738 /// from a term. | 742 /// from a term. |
739 class _DeletedNode extends Node { | 743 class _DeletedNode extends Node { |
740 accept(_) => null; | 744 accept(_) => null; |
741 } | 745 } |
OLD | NEW |