| 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 '../dart2jslib.dart' as dart2js; | 7 import '../dart2jslib.dart' as dart2js; |
| 8 import '../elements/elements.dart'; | 8 import '../elements/elements.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 '../util/util.dart' show CURRENT_ELEMENT_SPANNABLE; | 10 import '../util/util.dart' show CURRENT_ELEMENT_SPANNABLE; |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 return new ExpressionStatement(setStatic, visit(node.body)); | 585 return new ExpressionStatement(setStatic, visit(node.body)); |
| 586 } | 586 } |
| 587 | 587 |
| 588 Expression visitApplyBuiltinOperator(cps_ir.ApplyBuiltinOperator node) { | 588 Expression visitApplyBuiltinOperator(cps_ir.ApplyBuiltinOperator node) { |
| 589 if (node.operator == BuiltinOperator.IsFalsy) { | 589 if (node.operator == BuiltinOperator.IsFalsy) { |
| 590 return new Not(getVariableUse(node.arguments.single)); | 590 return new Not(getVariableUse(node.arguments.single)); |
| 591 } | 591 } |
| 592 return new ApplyBuiltinOperator(node.operator, | 592 return new ApplyBuiltinOperator(node.operator, |
| 593 translateArguments(node.arguments)); | 593 translateArguments(node.arguments)); |
| 594 } | 594 } |
| 595 | |
| 596 @override | |
| 597 visitForeignCode(cps_ir.ForeignCode node) { | |
| 598 unexpectedNode(node); | |
| 599 } | |
| 600 } | 595 } |
| 601 | 596 |
| OLD | NEW |