| 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 node.receiver.parent = node; | 550 node.receiver.parent = node; |
| 551 node.continuation.parent = node; | 551 node.continuation.parent = node; |
| 552 node.arguments.forEach((Reference ref) => ref.parent = node); | 552 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 553 } | 553 } |
| 554 | 554 |
| 555 processInvokeConstructor(InvokeConstructor node) { | 555 processInvokeConstructor(InvokeConstructor node) { |
| 556 node.continuation.parent = node; | 556 node.continuation.parent = node; |
| 557 node.arguments.forEach((Reference ref) => ref.parent = node); | 557 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 558 } | 558 } |
| 559 | 559 |
| 560 processConcatenateStrings(ConcatenateStrings node) { | |
| 561 node.continuation.parent = node; | |
| 562 node.arguments.forEach((Reference ref) => ref.parent = node); | |
| 563 } | |
| 564 | |
| 565 processBranch(Branch node) { | 560 processBranch(Branch node) { |
| 566 node.condition.parent = node; | 561 node.condition.parent = node; |
| 567 node.trueContinuation.parent = node; | 562 node.trueContinuation.parent = node; |
| 568 node.falseContinuation.parent = node; | 563 node.falseContinuation.parent = node; |
| 569 } | 564 } |
| 570 | 565 |
| 571 processTypeCast(TypeCast node) { | 566 processTypeCast(TypeCast node) { |
| 572 node.typeArguments.forEach((Reference ref) => ref.parent = node); | 567 node.typeArguments.forEach((Reference ref) => ref.parent = node); |
| 573 node.continuation.parent = node; | 568 node.continuation.parent = node; |
| 574 node.value.parent = node; | 569 node.value.parent = node; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 } | 720 } |
| 726 | 721 |
| 727 String toString() => "$kind: $node"; | 722 String toString() => "$kind: $node"; |
| 728 } | 723 } |
| 729 | 724 |
| 730 /// A dummy class used solely to mark nodes as deleted once they are removed | 725 /// A dummy class used solely to mark nodes as deleted once they are removed |
| 731 /// from a term. | 726 /// from a term. |
| 732 class _DeletedNode extends Node { | 727 class _DeletedNode extends Node { |
| 733 accept(_) => null; | 728 accept(_) => null; |
| 734 } | 729 } |
| OLD | NEW |