Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: pkg/compiler/lib/src/cps_ir/inline.dart

Issue 1689933002: dart2js cps: Do not inline string interpolation helper. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Rebase + update test expectations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_mask_system.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/type_mask_system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698