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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 return '$indentation(DeclareFunction ${node.variable.name} =\n' | 189 return '$indentation(DeclareFunction ${node.variable.name} =\n' |
190 '$function in\n' | 190 '$function in\n' |
191 '$body)'; | 191 '$body)'; |
192 } | 192 } |
193 | 193 |
194 String visitIsTrue(IsTrue node) { | 194 String visitIsTrue(IsTrue node) { |
195 String value = names[node.value.definition]; | 195 String value = names[node.value.definition]; |
196 return '(IsTrue $value)'; | 196 return '(IsTrue $value)'; |
197 } | 197 } |
198 } | 198 } |
OLD | NEW |