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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 564 |
565 processTypeCast(TypeCast node) { | 565 processTypeCast(TypeCast node) { |
566 node.typeArguments.forEach((Reference ref) => ref.parent = node); | 566 node.typeArguments.forEach((Reference ref) => ref.parent = node); |
567 node.continuation.parent = node; | 567 node.continuation.parent = node; |
568 node.value.parent = node; | 568 node.value.parent = node; |
569 } | 569 } |
570 | 570 |
571 processTypeTest(TypeTest node) { | 571 processTypeTest(TypeTest node) { |
572 node.typeArguments.forEach((Reference ref) => ref.parent = node); | 572 node.typeArguments.forEach((Reference ref) => ref.parent = node); |
573 node.value.parent = node; | 573 node.value.parent = node; |
574 if (node.interceptor != null) node.interceptor.parent = node; | |
575 } | |
576 | |
577 processTypeTestViaFlag(TypeTestViaFlag node) { | |
578 node.interceptor.parent = node; | |
579 } | 574 } |
580 | 575 |
581 processSetMutable(SetMutable node) { | 576 processSetMutable(SetMutable node) { |
582 node.variable.parent = node; | 577 node.variable.parent = node; |
583 node.value.parent = node; | 578 node.value.parent = node; |
584 } | 579 } |
585 | 580 |
586 processThrow(Throw node) { | 581 processThrow(Throw node) { |
587 node.value.parent = node; | 582 node.value.parent = node; |
588 } | 583 } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 } | 741 } |
747 | 742 |
748 String toString() => "$kind: $node"; | 743 String toString() => "$kind: $node"; |
749 } | 744 } |
750 | 745 |
751 /// A dummy class used solely to mark nodes as deleted once they are removed | 746 /// A dummy class used solely to mark nodes as deleted once they are removed |
752 /// from a term. | 747 /// from a term. |
753 class _DeletedNode extends Node { | 748 class _DeletedNode extends Node { |
754 accept(_) => null; | 749 accept(_) => null; |
755 } | 750 } |
OLD | NEW |