| 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/call_structure.dart' show | 10 import '../universe/call_structure.dart' show |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 return '(GetLazyStatic $element)'; | 306 return '(GetLazyStatic $element)'; |
| 307 } | 307 } |
| 308 | 308 |
| 309 String visitCreateBox(CreateBox node) { | 309 String visitCreateBox(CreateBox node) { |
| 310 return '(CreateBox)'; | 310 return '(CreateBox)'; |
| 311 } | 311 } |
| 312 | 312 |
| 313 String visitCreateInstance(CreateInstance node) { | 313 String visitCreateInstance(CreateInstance node) { |
| 314 String className = node.classElement.name; | 314 String className = node.classElement.name; |
| 315 String arguments = node.arguments.map(access).join(' '); | 315 String arguments = node.arguments.map(access).join(' '); |
| 316 String typeInformation = node.typeInformation.map(access).join(' '); | 316 String typeInformation = optionalAccess(node.typeInformation); |
| 317 return '(CreateInstance $className ($arguments) ($typeInformation))'; | 317 return '(CreateInstance $className ($arguments) ($typeInformation))'; |
| 318 } | 318 } |
| 319 | 319 |
| 320 String visitInterceptor(Interceptor node) { | 320 String visitInterceptor(Interceptor node) { |
| 321 return '(Interceptor ${access(node.input)})'; | 321 return '(Interceptor ${access(node.input)})'; |
| 322 } | 322 } |
| 323 | 323 |
| 324 String visitReifyRuntimeType(ReifyRuntimeType node) { | 324 String visitReifyRuntimeType(ReifyRuntimeType node) { |
| 325 return '(ReifyRuntimeType ${access(node.value)})'; | 325 return '(ReifyRuntimeType ${access(node.value)})'; |
| 326 } | 326 } |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 void setReturnContinuation(Continuation node) { | 512 void setReturnContinuation(Continuation node) { |
| 513 assert(!_names.containsKey(node) || _names[node] == 'return'); | 513 assert(!_names.containsKey(node) || _names[node] == 'return'); |
| 514 _names[node] = 'return'; | 514 _names[node] = 'return'; |
| 515 } | 515 } |
| 516 | 516 |
| 517 String getName(Node node) { | 517 String getName(Node node) { |
| 518 if (!_names.containsKey(node)) return 'MISSING_NAME'; | 518 if (!_names.containsKey(node)) return 'MISSING_NAME'; |
| 519 return _names[node]; | 519 return _names[node]; |
| 520 } | 520 } |
| 521 } | 521 } |
| OLD | NEW |