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 copy_propagator; | 5 library copy_propagator; |
6 | 6 |
7 import '../elements/elements.dart'; | 7 import '../elements/elements.dart'; |
8 import 'tree_ir_nodes.dart'; | 8 import 'tree_ir_nodes.dart'; |
9 | 9 |
10 /// Eliminates moving assignments, such as w := v, by assigning directly to w | 10 /// Eliminates moving assignments, such as w := v, by assigning directly to w |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 node.next = visitStatement(node.next); | 190 node.next = visitStatement(node.next); |
191 visitExpression(node.expression); | 191 visitExpression(node.expression); |
192 return node; | 192 return node; |
193 } | 193 } |
194 | 194 |
195 void visitFunctionExpression(FunctionExpression node) { | 195 void visitFunctionExpression(FunctionExpression node) { |
196 new CopyPropagator().rewrite(node.definition); | 196 new CopyPropagator().rewrite(node.definition); |
197 } | 197 } |
198 | 198 |
199 } | 199 } |
OLD | NEW |