| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 659 } |
| 660 | 660 |
| 661 processCreateInvocationMirror(CreateInvocationMirror node) { | 661 processCreateInvocationMirror(CreateInvocationMirror node) { |
| 662 node.arguments.forEach((Reference ref) => ref.parent = node); | 662 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 663 } | 663 } |
| 664 | 664 |
| 665 processApplyBuiltinOperator(ApplyBuiltinOperator node) { | 665 processApplyBuiltinOperator(ApplyBuiltinOperator node) { |
| 666 node.arguments.forEach((Reference ref) => ref.parent = node); | 666 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 667 } | 667 } |
| 668 | 668 |
| 669 processApplyBuiltinMethod(ApplyBuiltinMethod node) { |
| 670 node.receiver.parent = node; |
| 671 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 672 } |
| 673 |
| 669 processForeignCode(ForeignCode node) { | 674 processForeignCode(ForeignCode node) { |
| 670 if (node.continuation != null) { | 675 if (node.continuation != null) { |
| 671 node.continuation.parent = node; | 676 node.continuation.parent = node; |
| 672 } | 677 } |
| 673 node.arguments.forEach((Reference ref) => ref.parent = node); | 678 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 674 } | 679 } |
| 675 | 680 |
| 676 processGetLength(GetLength node) { | 681 processGetLength(GetLength node) { |
| 677 node.object.parent = node; | 682 node.object.parent = node; |
| 678 } | 683 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 } | 736 } |
| 732 | 737 |
| 733 String toString() => "$kind: $node"; | 738 String toString() => "$kind: $node"; |
| 734 } | 739 } |
| 735 | 740 |
| 736 /// 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 |
| 737 /// from a term. | 742 /// from a term. |
| 738 class _DeletedNode extends Node { | 743 class _DeletedNode extends Node { |
| 739 accept(_) => null; | 744 accept(_) => null; |
| 740 } | 745 } |
| OLD | NEW |