| 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 | 10 |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 } | 396 } |
| 397 | 397 |
| 398 String visitType(TypeConstantValue constant, _) { | 398 String visitType(TypeConstantValue constant, _) { |
| 399 return '(Type "${constant.representedType}")'; | 399 return '(Type "${constant.representedType}")'; |
| 400 } | 400 } |
| 401 | 401 |
| 402 String visitInterceptor(InterceptorConstantValue constant, _) { | 402 String visitInterceptor(InterceptorConstantValue constant, _) { |
| 403 return _failWith(constant); | 403 return _failWith(constant); |
| 404 } | 404 } |
| 405 | 405 |
| 406 String visitDummy(DummyConstantValue constant, _) { | 406 String visitSynthetic(SyntheticConstantValue constant, _) { |
| 407 return _failWith(constant); | 407 return _failWith(constant); |
| 408 } | 408 } |
| 409 | 409 |
| 410 String visitDeferred(DeferredConstantValue constant, _) { | 410 String visitDeferred(DeferredConstantValue constant, _) { |
| 411 return _failWith(constant); | 411 return _failWith(constant); |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 | 414 |
| 415 class _Namer { | 415 class _Namer { |
| 416 final Map<Node, String> _names = <Node, String>{}; | 416 final Map<Node, String> _names = <Node, String>{}; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 445 void setReturnContinuation(Continuation node) { | 445 void setReturnContinuation(Continuation node) { |
| 446 assert(!_names.containsKey(node) || _names[node] == 'return'); | 446 assert(!_names.containsKey(node) || _names[node] == 'return'); |
| 447 _names[node] = 'return'; | 447 _names[node] = 'return'; |
| 448 } | 448 } |
| 449 | 449 |
| 450 String getName(Node node) { | 450 String getName(Node node) { |
| 451 if (!_names.containsKey(node)) return 'MISSING_NAME'; | 451 if (!_names.containsKey(node)) return 'MISSING_NAME'; |
| 452 return _names[node]; | 452 return _names[node]; |
| 453 } | 453 } |
| 454 } | 454 } |
| OLD | NEW |