| 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 | 8 import '../common/names.dart' show |
| 9 Identifiers, | 9 Identifiers, |
| 10 Uris; | 10 Uris; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 cachedCheckConcurrentModificationError = | 426 cachedCheckConcurrentModificationError = |
| 427 findHelper('checkConcurrentModificationError'); | 427 findHelper('checkConcurrentModificationError'); |
| 428 } | 428 } |
| 429 return cachedCheckConcurrentModificationError; | 429 return cachedCheckConcurrentModificationError; |
| 430 } | 430 } |
| 431 | 431 |
| 432 Element get throwConcurrentModificationError { | 432 Element get throwConcurrentModificationError { |
| 433 return findHelper('throwConcurrentModificationError'); | 433 return findHelper('throwConcurrentModificationError'); |
| 434 } | 434 } |
| 435 | 435 |
| 436 Element get throwIndexOutOfBoundsError { | |
| 437 return findHelper('ioore'); | |
| 438 } | |
| 439 | |
| 440 Element get stringInterpolationHelper { | 436 Element get stringInterpolationHelper { |
| 441 return findHelper('S'); | 437 return findHelper('S'); |
| 442 } | 438 } |
| 443 | 439 |
| 444 Element get wrapExceptionHelper { | 440 Element get wrapExceptionHelper { |
| 445 return findHelper(r'wrapException'); | 441 return findHelper(r'wrapException'); |
| 446 } | 442 } |
| 447 | 443 |
| 448 Element get throwExpressionHelper { | 444 Element get throwExpressionHelper { |
| 449 return findHelper('throwExpression'); | 445 return findHelper('throwExpression'); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 MethodElement _objectNoSuchMethod; | 684 MethodElement _objectNoSuchMethod; |
| 689 | 685 |
| 690 MethodElement get objectNoSuchMethod { | 686 MethodElement get objectNoSuchMethod { |
| 691 if (_objectNoSuchMethod == null) { | 687 if (_objectNoSuchMethod == null) { |
| 692 _objectNoSuchMethod = | 688 _objectNoSuchMethod = |
| 693 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); | 689 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); |
| 694 } | 690 } |
| 695 return _objectNoSuchMethod; | 691 return _objectNoSuchMethod; |
| 696 } | 692 } |
| 697 } | 693 } |
| OLD | NEW |