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 '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
10 import '../core_types.dart' show CommonElements, ElementEnvironment; | 10 import '../core_types.dart' show CommonElements, ElementEnvironment; |
(...skipping 693 matching lines...) Loading... |
704 | 704 |
705 ClassEntity get asyncStarController => | 705 ClassEntity get asyncStarController => |
706 _findAsyncHelperClass("_AsyncStarStreamController"); | 706 _findAsyncHelperClass("_AsyncStarStreamController"); |
707 | 707 |
708 ConstructorEntity get asyncStarControllerConstructor => | 708 ConstructorEntity get asyncStarControllerConstructor => |
709 _env.lookupConstructor(asyncStarController, "", required: true); | 709 _env.lookupConstructor(asyncStarController, "", required: true); |
710 | 710 |
711 ConstructorEntity get streamIteratorConstructor => | 711 ConstructorEntity get streamIteratorConstructor => |
712 _env.lookupConstructor(_findAsyncHelperClass("StreamIterator"), ""); | 712 _env.lookupConstructor(_findAsyncHelperClass("StreamIterator"), ""); |
713 | 713 |
714 ClassEntity get VoidRuntimeType => _findHelperClass('VoidRuntimeType'); | |
715 | 714 |
716 FunctionEntity get defineProperty => _findHelperFunction('defineProperty'); | 715 FunctionEntity get defineProperty => _findHelperFunction('defineProperty'); |
717 | 716 |
718 FunctionEntity get startRootIsolate => | 717 FunctionEntity get startRootIsolate => |
719 _findLibraryMember(isolateHelperLibrary, START_ROOT_ISOLATE); | 718 _findLibraryMember(isolateHelperLibrary, START_ROOT_ISOLATE); |
720 | 719 |
721 FunctionEntity get currentIsolate => | 720 FunctionEntity get currentIsolate => |
722 _findLibraryMember(isolateHelperLibrary, '_currentIsolate'); | 721 _findLibraryMember(isolateHelperLibrary, '_currentIsolate'); |
723 | 722 |
724 FunctionEntity get callInIsolate => | 723 FunctionEntity get callInIsolate => |
(...skipping 39 matching lines...) Loading... |
764 /// The class for patch annotations defined in dart:_js_helper. | 763 /// The class for patch annotations defined in dart:_js_helper. |
765 ClassEntity get patchAnnotationClass => | 764 ClassEntity get patchAnnotationClass => |
766 _patchAnnotationClass ??= _findHelperClass('_Patch'); | 765 _patchAnnotationClass ??= _findHelperClass('_Patch'); |
767 | 766 |
768 ClassEntity _nativeAnnotationClass; | 767 ClassEntity _nativeAnnotationClass; |
769 | 768 |
770 /// The class for native annotations defined in dart:_js_helper. | 769 /// The class for native annotations defined in dart:_js_helper. |
771 ClassEntity get nativeAnnotationClass => | 770 ClassEntity get nativeAnnotationClass => |
772 _nativeAnnotationClass ??= _findHelperClass('Native'); | 771 _nativeAnnotationClass ??= _findHelperClass('Native'); |
773 } | 772 } |
OLD | NEW |