| 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.optimization.statement_rewriter; | 5 library tree_ir.optimization.statement_rewriter; |
| 6 | 6 |
| 7 import 'optimization.dart' show Pass; | 7 import 'optimization.dart' show Pass; |
| 8 import '../tree_ir_nodes.dart'; | 8 import '../tree_ir_nodes.dart'; |
| 9 import '../../io/source_information.dart'; | 9 import '../../io/source_information.dart'; |
| 10 import '../../elements/elements.dart'; | 10 import '../../elements/elements.dart'; |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 Expression visitGetTypeTestProperty(GetTypeTestProperty node) { | 807 Expression visitGetTypeTestProperty(GetTypeTestProperty node) { |
| 808 node.object = visitExpression(node.object); | 808 node.object = visitExpression(node.object); |
| 809 return node; | 809 return node; |
| 810 } | 810 } |
| 811 | 811 |
| 812 Expression visitCreateBox(CreateBox node) { | 812 Expression visitCreateBox(CreateBox node) { |
| 813 return node; | 813 return node; |
| 814 } | 814 } |
| 815 | 815 |
| 816 Expression visitCreateInstance(CreateInstance node) { | 816 Expression visitCreateInstance(CreateInstance node) { |
| 817 _rewriteList(node.typeInformation); |
| 817 _rewriteList(node.arguments); | 818 _rewriteList(node.arguments); |
| 818 return node; | 819 return node; |
| 819 } | 820 } |
| 820 | 821 |
| 821 Expression visitReifyRuntimeType(ReifyRuntimeType node) { | 822 Expression visitReifyRuntimeType(ReifyRuntimeType node) { |
| 822 node.value = visitExpression(node.value); | 823 node.value = visitExpression(node.value); |
| 823 return node; | 824 return node; |
| 824 } | 825 } |
| 825 | 826 |
| 826 Expression visitReadTypeVariable(ReadTypeVariable node) { | 827 Expression visitReadTypeVariable(ReadTypeVariable node) { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 VariableUseCallback callback; | 1352 VariableUseCallback callback; |
| 1352 | 1353 |
| 1353 VariableUseVisitor(this.callback); | 1354 VariableUseVisitor(this.callback); |
| 1354 | 1355 |
| 1355 visitVariableUse(VariableUse use) => callback(use); | 1356 visitVariableUse(VariableUse use) => callback(use); |
| 1356 | 1357 |
| 1357 static void visit(Expression node, VariableUseCallback callback) { | 1358 static void visit(Expression node, VariableUseCallback callback) { |
| 1358 new VariableUseVisitor(callback).visitExpression(node); | 1359 new VariableUseVisitor(callback).visitExpression(node); |
| 1359 } | 1360 } |
| 1360 } | 1361 } |
| OLD | NEW |