Chromium Code Reviews| 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 Uris; | 10 Uris; |
| 10 import '../common/resolution.dart' show | 11 import '../common/resolution.dart' show |
| 11 Resolution; | 12 Resolution; |
| 12 import '../compiler.dart' show | 13 import '../compiler.dart' show |
| 13 Compiler; | 14 Compiler; |
| 14 import '../core_types.dart' show | 15 import '../core_types.dart' show |
| 15 CoreClasses; | 16 CoreClasses; |
| 16 import '../elements/elements.dart' show | 17 import '../elements/elements.dart' show |
| 17 AbstractFieldElement, | 18 AbstractFieldElement, |
| 18 ClassElement, | 19 ClassElement, |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 672 return find(isolateHelperLibrary, '_callInIsolate'); | 673 return find(isolateHelperLibrary, '_callInIsolate'); |
| 673 } | 674 } |
| 674 | 675 |
| 675 Element get findIndexForNativeSubclassType { | 676 Element get findIndexForNativeSubclassType { |
| 676 return findInterceptor('findIndexForNativeSubclassType'); | 677 return findInterceptor('findIndexForNativeSubclassType'); |
| 677 } | 678 } |
| 678 | 679 |
| 679 Element get convertRtiToRuntimeType { | 680 Element get convertRtiToRuntimeType { |
| 680 return findHelper('convertRtiToRuntimeType'); | 681 return findHelper('convertRtiToRuntimeType'); |
| 681 } | 682 } |
| 683 | |
| 684 ClassElement get stackTraceClass { | |
| 685 return findHelper('_StackTrace'); | |
| 686 } | |
| 687 | |
| 688 MethodElement _objectNoSuchMethod; | |
| 689 | |
| 690 MethodElement get objectNoSuchMethod { | |
| 691 if (_objectNoSuchMethod == null) { | |
| 692 _objectNoSuchMethod = | |
| 693 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); | |
| 694 } | |
| 695 return _objectNoSuchMethod; | |
| 696 } | |
|
sra1
2015/11/25 19:02:13
FYI this can be written
MethodElement get objectN
| |
| 682 } | 697 } |
| OLD | NEW |