| 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 tree_ir_builder; | 5 library tree_ir_builder; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../constants/values.dart'; | 8 import '../constants/values.dart'; |
| 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; | 9 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; |
| 10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 node.codeTemplate, | 637 node.codeTemplate, |
| 638 node.type, | 638 node.type, |
| 639 arguments, | 639 arguments, |
| 640 node.nativeBehavior, | 640 node.nativeBehavior, |
| 641 node.dependency); | 641 node.dependency); |
| 642 }; | 642 }; |
| 643 } | 643 } |
| 644 } | 644 } |
| 645 | 645 |
| 646 Expression visitGetLazyStatic(cps_ir.GetLazyStatic node) { | 646 Expression visitGetLazyStatic(cps_ir.GetLazyStatic node) { |
| 647 // In the tree IR, GetStatic handles lazy fields because we do not need | 647 return new GetStatic.lazy(node.element, node.sourceInformation); |
| 648 // as fine-grained control over side effects. | |
| 649 return new GetStatic(node.element, node.sourceInformation); | |
| 650 } | 648 } |
| 651 | 649 |
| 652 @override | 650 @override |
| 653 NodeCallback visitYield(cps_ir.Yield node) { | 651 NodeCallback visitYield(cps_ir.Yield node) { |
| 654 return (Statement next) { | 652 return (Statement next) { |
| 655 return new Yield(getVariableUse(node.input), node.hasStar, next); | 653 return new Yield(getVariableUse(node.input), node.hasStar, next); |
| 656 }; | 654 }; |
| 657 } | 655 } |
| 658 | 656 |
| 659 @override | 657 @override |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 --enclosingFunctions; | 695 --enclosingFunctions; |
| 698 } | 696 } |
| 699 | 697 |
| 700 @override | 698 @override |
| 701 visitInterpolatedNode(js.InterpolatedNode node) { | 699 visitInterpolatedNode(js.InterpolatedNode node) { |
| 702 if (enclosingFunctions > 0) { | 700 if (enclosingFunctions > 0) { |
| 703 found = true; | 701 found = true; |
| 704 } | 702 } |
| 705 } | 703 } |
| 706 } | 704 } |
| OLD | NEW |