| 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 '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 import '../util/util.dart'; | 8 import '../util/util.dart'; |
| 9 import 'cps_ir_nodes.dart'; | 9 import 'cps_ir_nodes.dart'; |
| 10 import '../universe/universe.dart' show Selector, CallStructure; | 10 import '../universe/universe.dart' show Selector, CallStructure; |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 String visitReadTypeVariable(ReadTypeVariable node) { | 308 String visitReadTypeVariable(ReadTypeVariable node) { |
| 309 return '(ReadTypeVariable ${access(node.target)}.${node.variable})'; | 309 return '(ReadTypeVariable ${access(node.target)}.${node.variable})'; |
| 310 } | 310 } |
| 311 | 311 |
| 312 String visitTypeExpression(TypeExpression node) { | 312 String visitTypeExpression(TypeExpression node) { |
| 313 String args = node.arguments.map(access).join(' '); | 313 String args = node.arguments.map(access).join(' '); |
| 314 return '(TypeExpression ${node.dartType} ($args))'; | 314 return '(TypeExpression ${node.dartType} ($args))'; |
| 315 } | 315 } |
| 316 | 316 |
| 317 String visitNonTailThrow(NonTailThrow node) { | |
| 318 String value = access(node.value); | |
| 319 return '(NonTailThrow $value)'; | |
| 320 } | |
| 321 | |
| 322 String visitCreateInvocationMirror(CreateInvocationMirror node) { | 317 String visitCreateInvocationMirror(CreateInvocationMirror node) { |
| 323 String selector = node.selector.name; | 318 String selector = node.selector.name; |
| 324 String args = node.arguments.map(access).join(' '); | 319 String args = node.arguments.map(access).join(' '); |
| 325 return '(CreateInvocationMirror $selector ($args))'; | 320 return '(CreateInvocationMirror $selector ($args))'; |
| 326 } | 321 } |
| 327 | 322 |
| 328 String visitApplyBuiltinOperator(ApplyBuiltinOperator node) { | 323 String visitApplyBuiltinOperator(ApplyBuiltinOperator node) { |
| 329 String operator = node.operator.toString(); | 324 String operator = node.operator.toString(); |
| 330 String args = node.arguments.map(access).join(' '); | 325 String args = node.arguments.map(access).join(' '); |
| 331 return '(ApplyBuiltinOperator $operator ($args))'; | 326 return '(ApplyBuiltinOperator $operator ($args))'; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 void setReturnContinuation(Continuation node) { | 457 void setReturnContinuation(Continuation node) { |
| 463 assert(!_names.containsKey(node) || _names[node] == 'return'); | 458 assert(!_names.containsKey(node) || _names[node] == 'return'); |
| 464 _names[node] = 'return'; | 459 _names[node] = 'return'; |
| 465 } | 460 } |
| 466 | 461 |
| 467 String getName(Node node) { | 462 String getName(Node node) { |
| 468 if (!_names.containsKey(node)) return 'MISSING_NAME'; | 463 if (!_names.containsKey(node)) return 'MISSING_NAME'; |
| 469 return _names[node]; | 464 return _names[node]; |
| 470 } | 465 } |
| 471 } | 466 } |
| OLD | NEW |