| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 cps_ir.optimization.inline; | 5 library cps_ir.optimization.inline; |
| 6 | 6 |
| 7 import 'cps_fragment.dart'; | 7 import 'cps_fragment.dart'; |
| 8 import 'cps_ir_builder.dart' show ThisParameterLocal; | 8 import 'cps_ir_builder.dart' show ThisParameterLocal; |
| 9 import 'cps_ir_nodes.dart'; | 9 import 'cps_ir_nodes.dart'; |
| 10 import 'optimizers.dart'; | 10 import 'optimizers.dart'; |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 591 |
| 592 bool isBlacklisted(FunctionElement target) { | 592 bool isBlacklisted(FunctionElement target) { |
| 593 ClassElement enclosingClass = target.enclosingClass; | 593 ClassElement enclosingClass = target.enclosingClass; |
| 594 if (target.isOperator && | 594 if (target.isOperator && |
| 595 (enclosingClass == backend.helpers.jsNumberClass || | 595 (enclosingClass == backend.helpers.jsNumberClass || |
| 596 enclosingClass == backend.helpers.jsDoubleClass || | 596 enclosingClass == backend.helpers.jsDoubleClass || |
| 597 enclosingClass == backend.helpers.jsIntClass)) { | 597 enclosingClass == backend.helpers.jsIntClass)) { |
| 598 // These should be handled by operator specialization. | 598 // These should be handled by operator specialization. |
| 599 return true; | 599 return true; |
| 600 } | 600 } |
| 601 if (target == backend.helpers.stringInterpolationHelper) return true; |
| 601 return false; | 602 return false; |
| 602 } | 603 } |
| 603 } | 604 } |
| OLD | NEW |