| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 node.typeArguments.forEach((Reference ref) => ref.parent = node); | 567 node.typeArguments.forEach((Reference ref) => ref.parent = node); |
| 568 node.continuation.parent = node; | 568 node.continuation.parent = node; |
| 569 node.value.parent = node; | 569 node.value.parent = node; |
| 570 } | 570 } |
| 571 | 571 |
| 572 processTypeTest(TypeTest node) { | 572 processTypeTest(TypeTest node) { |
| 573 node.typeArguments.forEach((Reference ref) => ref.parent = node); | 573 node.typeArguments.forEach((Reference ref) => ref.parent = node); |
| 574 node.value.parent = node; | 574 node.value.parent = node; |
| 575 } | 575 } |
| 576 | 576 |
| 577 processSetMutableVariable(SetMutableVariable node) { | 577 processSetMutable(SetMutable node) { |
| 578 node.variable.parent = node; | 578 node.variable.parent = node; |
| 579 node.body.parent = node; | |
| 580 node.value.parent = node; | 579 node.value.parent = node; |
| 581 } | 580 } |
| 582 | 581 |
| 583 processThrow(Throw node) { | 582 processThrow(Throw node) { |
| 584 node.value.parent = node; | 583 node.value.parent = node; |
| 585 } | 584 } |
| 586 | 585 |
| 587 processGetLazyStatic(GetLazyStatic node) { | 586 processGetLazyStatic(GetLazyStatic node) { |
| 588 node.continuation.parent = node; | 587 node.continuation.parent = node; |
| 589 } | 588 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 616 node.value.parent = node; | 615 node.value.parent = node; |
| 617 } | 616 } |
| 618 | 617 |
| 619 processInterceptor(Interceptor node) { | 618 processInterceptor(Interceptor node) { |
| 620 node.input.parent = node; | 619 node.input.parent = node; |
| 621 } | 620 } |
| 622 | 621 |
| 623 processSetField(SetField node) { | 622 processSetField(SetField node) { |
| 624 node.object.parent = node; | 623 node.object.parent = node; |
| 625 node.value.parent = node; | 624 node.value.parent = node; |
| 626 node.body.parent = node; | |
| 627 } | 625 } |
| 628 | 626 |
| 629 processGetField(GetField node) { | 627 processGetField(GetField node) { |
| 630 node.object.parent = node; | 628 node.object.parent = node; |
| 631 } | 629 } |
| 632 | 630 |
| 633 processGetStatic(GetStatic node) { | 631 processGetStatic(GetStatic node) { |
| 634 } | 632 } |
| 635 | 633 |
| 636 processSetStatic(SetStatic node) { | 634 processSetStatic(SetStatic node) { |
| 637 node.value.parent = node; | 635 node.value.parent = node; |
| 638 node.body.parent = node; | |
| 639 } | 636 } |
| 640 | 637 |
| 641 processGetMutableVariable(GetMutableVariable node) { | 638 processGetMutable(GetMutable node) { |
| 642 node.variable.parent = node; | 639 node.variable.parent = node; |
| 643 } | 640 } |
| 644 | 641 |
| 645 processCreateInstance(CreateInstance node) { | 642 processCreateInstance(CreateInstance node) { |
| 646 node.arguments.forEach((Reference ref) => ref.parent = node); | 643 node.arguments.forEach((Reference ref) => ref.parent = node); |
| 647 node.typeInformation.forEach((Reference ref) => ref.parent = node); | 644 node.typeInformation.forEach((Reference ref) => ref.parent = node); |
| 648 } | 645 } |
| 649 | 646 |
| 650 processCreateBox(CreateBox node) { | 647 processCreateBox(CreateBox node) { |
| 651 } | 648 } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 } | 727 } |
| 731 | 728 |
| 732 String toString() => "$kind: $node"; | 729 String toString() => "$kind: $node"; |
| 733 } | 730 } |
| 734 | 731 |
| 735 /// A dummy class used solely to mark nodes as deleted once they are removed | 732 /// A dummy class used solely to mark nodes as deleted once they are removed |
| 736 /// from a term. | 733 /// from a term. |
| 737 class _DeletedNode extends Node { | 734 class _DeletedNode extends Node { |
| 738 accept(_) => null; | 735 accept(_) => null; |
| 739 } | 736 } |
| OLD | NEW |