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 Uris; | 9 Uris; |
10 import '../common/resolution.dart' show | 10 import '../common/resolution.dart' show |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 classElement.ensureResolved(resolution); | 579 classElement.ensureResolved(resolution); |
580 return classElement.lookupLocalMember("endOfIteration"); | 580 return classElement.lookupLocalMember("endOfIteration"); |
581 } | 581 } |
582 | 582 |
583 Element get syncStarIterable { | 583 Element get syncStarIterable { |
584 ClassElement classElement = findAsyncHelper("_SyncStarIterable"); | 584 ClassElement classElement = findAsyncHelper("_SyncStarIterable"); |
585 classElement.ensureResolved(resolution); | 585 classElement.ensureResolved(resolution); |
586 return classElement; | 586 return classElement; |
587 } | 587 } |
588 | 588 |
| 589 Element get futureImplementation { |
| 590 ClassElement classElement = findAsyncHelper('_Future'); |
| 591 classElement.ensureResolved(resolution); |
| 592 return classElement; |
| 593 } |
| 594 |
| 595 Element get controllerStream { |
| 596 ClassElement classElement = findAsyncHelper("_ControllerStream"); |
| 597 classElement.ensureResolved(resolution); |
| 598 return classElement; |
| 599 } |
| 600 |
589 Element get syncStarIterableConstructor { | 601 Element get syncStarIterableConstructor { |
590 ClassElement classElement = syncStarIterable; | 602 ClassElement classElement = syncStarIterable; |
591 classElement.ensureResolved(resolution); | 603 classElement.ensureResolved(resolution); |
592 return classElement.lookupConstructor(""); | 604 return classElement.lookupConstructor(""); |
593 } | 605 } |
594 | 606 |
595 Element get syncCompleterConstructor { | 607 Element get syncCompleterConstructor { |
596 ClassElement classElement = find(compiler.asyncLibrary, "Completer"); | 608 ClassElement classElement = find(compiler.asyncLibrary, "Completer"); |
597 classElement.ensureResolved(resolution); | 609 classElement.ensureResolved(resolution); |
598 return classElement.lookupConstructor("sync"); | 610 return classElement.lookupConstructor("sync"); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 return find(isolateHelperLibrary, '_callInIsolate'); | 672 return find(isolateHelperLibrary, '_callInIsolate'); |
661 } | 673 } |
662 | 674 |
663 Element get findIndexForNativeSubclassType { | 675 Element get findIndexForNativeSubclassType { |
664 return findInterceptor('findIndexForNativeSubclassType'); | 676 return findInterceptor('findIndexForNativeSubclassType'); |
665 } | 677 } |
666 | 678 |
667 Element get convertRtiToRuntimeType { | 679 Element get convertRtiToRuntimeType { |
668 return findHelper('convertRtiToRuntimeType'); | 680 return findHelper('convertRtiToRuntimeType'); |
669 } | 681 } |
670 } | 682 } |
OLD | NEW |