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 dart2js.ir_nodes_sexpr; | 5 library dart2js.ir_nodes_sexpr; |
6 | 6 |
7 import '../util/util.dart'; | 7 import '../util/util.dart'; |
8 import 'cps_ir_nodes.dart'; | 8 import 'cps_ir_nodes.dart'; |
9 | 9 |
10 /// Generate a Lisp-like S-expression representation of an IR node as a string. | 10 /// Generate a Lisp-like S-expression representation of an IR node as a string. |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 return '$indentation(DeclareFunction ${node.variable.name} =\n' + | 188 return '$indentation(DeclareFunction ${node.variable.name} =\n' + |
189 '$function in\n' + | 189 '$function in\n' + |
190 '$body)'; | 190 '$body)'; |
191 } | 191 } |
192 | 192 |
193 String visitIsTrue(IsTrue node) { | 193 String visitIsTrue(IsTrue node) { |
194 String value = names[node.value.definition]; | 194 String value = names[node.value.definition]; |
195 return '(IsTrue $value)'; | 195 return '(IsTrue $value)'; |
196 } | 196 } |
197 } | 197 } |
OLD | NEW |