| 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; |
| 574 } | 579 } |
| 575 | 580 |
| 576 processSetMutable(SetMutable node) { | 581 processSetMutable(SetMutable node) { |
| 577 node.variable.parent = node; | 582 node.variable.parent = node; |
| 578 node.value.parent = node; | 583 node.value.parent = node; |
| 579 } | 584 } |
| 580 | 585 |
| 581 processThrow(Throw node) { | 586 processThrow(Throw node) { |
| 582 node.value.parent = node; | 587 node.value.parent = node; |
| 583 } | 588 } |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 } | 746 } |
| 742 | 747 |
| 743 String toString() => "$kind: $node"; | 748 String toString() => "$kind: $node"; |
| 744 } | 749 } |
| 745 | 750 |
| 746 /// A dummy class used solely to mark nodes as deleted once they are removed | 751 /// A dummy class used solely to mark nodes as deleted once they are removed |
| 747 /// from a term. | 752 /// from a term. |
| 748 class _DeletedNode extends Node { | 753 class _DeletedNode extends Node { |
| 749 accept(_) => null; | 754 accept(_) => null; |
| 750 } | 755 } |
| OLD | NEW |