| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |