| 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 '../dart_types.dart'; | 8 import '../dart_types.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; | 10 import '../cps_ir/cps_ir_nodes.dart' as cps_ir; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 return continueWithExpression(node.continuation, value); | 579 return continueWithExpression(node.continuation, value); |
| 580 } | 580 } |
| 581 | 581 |
| 582 Statement visitSetStatic(cps_ir.SetStatic node) { | 582 Statement visitSetStatic(cps_ir.SetStatic node) { |
| 583 SetStatic setStatic = new SetStatic( | 583 SetStatic setStatic = new SetStatic( |
| 584 node.element, | 584 node.element, |
| 585 getVariableUse(node.value), | 585 getVariableUse(node.value), |
| 586 node.sourceInformation); | 586 node.sourceInformation); |
| 587 return new ExpressionStatement(setStatic, visit(node.body)); | 587 return new ExpressionStatement(setStatic, visit(node.body)); |
| 588 } | 588 } |
| 589 |
| 590 Expression visitApplyBuiltinOperator(cps_ir.ApplyBuiltinOperator node) { |
| 591 if (node.operator == BuiltinOperator.IsFalsy) { |
| 592 return new Not(getVariableUse(node.arguments.single)); |
| 593 } |
| 594 return new ApplyBuiltinOperator(node.operator, |
| 595 translateArguments(node.arguments)); |
| 596 } |
| 589 } | 597 } |
| 590 | 598 |
| OLD | NEW |