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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_helpers.dart

Issue 2392343004: Optimize out checkInt, checkNum and checkString (Closed)
Patch Set: Created 4 years, 2 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/ssa/optimize.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 dart2js.js_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Uris; 8 import '../common/names.dart' show Identifiers, Uris;
9 import '../common/resolution.dart' show Resolution; 9 import '../common/resolution.dart' show Resolution;
10 import '../compiler.dart' show Compiler; 10 import '../compiler.dart' show Compiler;
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 cachedCheckConcurrentModificationError = 450 cachedCheckConcurrentModificationError =
451 findHelper('checkConcurrentModificationError'); 451 findHelper('checkConcurrentModificationError');
452 } 452 }
453 return cachedCheckConcurrentModificationError; 453 return cachedCheckConcurrentModificationError;
454 } 454 }
455 455
456 Element get throwConcurrentModificationError { 456 Element get throwConcurrentModificationError {
457 return findHelper('throwConcurrentModificationError'); 457 return findHelper('throwConcurrentModificationError');
458 } 458 }
459 459
460 Element get checkInt => _checkInt ??= findHelper('checkInt');
461 Element _checkInt;
462
463 Element get checkNum => _checkNum ??= findHelper('checkNum');
464 Element _checkNum;
465
466 Element get checkString => _checkString ??= findHelper('checkString');
467 Element _checkString;
468
460 Element get stringInterpolationHelper { 469 Element get stringInterpolationHelper {
461 return findHelper('S'); 470 return findHelper('S');
462 } 471 }
463 472
464 Element get wrapExceptionHelper { 473 Element get wrapExceptionHelper {
465 return findHelper(r'wrapException'); 474 return findHelper(r'wrapException');
466 } 475 }
467 476
468 Element get throwExpressionHelper { 477 Element get throwExpressionHelper {
469 return findHelper('throwExpression'); 478 return findHelper('throwExpression');
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 MethodElement _objectNoSuchMethod; 712 MethodElement _objectNoSuchMethod;
704 713
705 MethodElement get objectNoSuchMethod { 714 MethodElement get objectNoSuchMethod {
706 if (_objectNoSuchMethod == null) { 715 if (_objectNoSuchMethod == null) {
707 _objectNoSuchMethod = 716 _objectNoSuchMethod =
708 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); 717 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_);
709 } 718 }
710 return _objectNoSuchMethod; 719 return _objectNoSuchMethod;
711 } 720 }
712 } 721 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698