| 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 js_tree_ir_builder; | 5 library js_tree_ir_builder; |
| 6 | 6 |
| 7 import '../../tree_ir/tree_ir_builder.dart' show Builder; | 7 import '../../tree_ir/tree_ir_builder.dart' show Builder; |
| 8 import 'glue.dart' show Glue; | 8 import 'glue.dart' show Glue; |
| 9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction; | 9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction; |
| 10 import '../../elements/elements.dart'; | 10 import '../../elements/elements.dart'; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 return new SetField(getVariableReference(node.object), | 57 return new SetField(getVariableReference(node.object), |
| 58 node.field, | 58 node.field, |
| 59 getVariableReference(node.value), | 59 getVariableReference(node.value), |
| 60 visit(node.body)); | 60 visit(node.body)); |
| 61 } | 61 } |
| 62 | 62 |
| 63 Expression visitCreateBox(cps_ir.CreateBox node) { | 63 Expression visitCreateBox(cps_ir.CreateBox node) { |
| 64 return new CreateBox(); | 64 return new CreateBox(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 Expression visitCreateClosureClass(cps_ir.CreateClosureClass node) { | 67 Expression visitCreateInstance(cps_ir.CreateInstance node) { |
| 68 return new CreateClosureClass( | 68 return new CreateInstance( |
| 69 node.classElement, | 69 node.classElement, |
| 70 node.arguments.map(getVariableReference).toList()); | 70 node.arguments.map(getVariableReference).toList()); |
| 71 } | 71 } |
| 72 } | 72 } |
| OLD | NEW |