| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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.resolution_strategy; | 5 library dart2js.resolution_strategy; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common_elements.dart'; | 8 import '../common_elements.dart'; |
| 9 import '../common/backend_api.dart'; | 9 import '../common/backend_api.dart'; |
| 10 import '../common/names.dart'; | 10 import '../common/names.dart'; |
| 11 import '../common/resolution.dart'; | 11 import '../common/resolution.dart'; |
| 12 import '../common/tasks.dart'; | 12 import '../common/tasks.dart'; |
| 13 import '../compiler.dart'; | 13 import '../compiler.dart'; |
| 14 import '../constants/values.dart'; | 14 import '../constants/values.dart'; |
| 15 import '../elements/elements.dart'; | 15 import '../elements/elements.dart'; |
| 16 import '../elements/entities.dart'; | 16 import '../elements/entities.dart'; |
| 17 import '../elements/modelx.dart'; | 17 import '../elements/modelx.dart'; |
| 18 import '../elements/resolution_types.dart'; | 18 import '../elements/resolution_types.dart'; |
| 19 import '../environment.dart'; | 19 import '../environment.dart'; |
| 20 import '../enqueue.dart'; | 20 import '../enqueue.dart'; |
| 21 import '../frontend_strategy.dart'; | 21 import '../frontend_strategy.dart'; |
| 22 import '../js_backend/backend.dart'; | 22 import '../js_backend/backend.dart'; |
| 23 import '../js_backend/backend_usage.dart'; | 23 import '../js_backend/backend_usage.dart'; |
| 24 import '../js_backend/custom_elements_analysis.dart'; | 24 import '../js_backend/custom_elements_analysis.dart'; |
| 25 import '../js_backend/interceptor_data.dart'; |
| 25 import '../js_backend/mirrors_analysis.dart'; | 26 import '../js_backend/mirrors_analysis.dart'; |
| 26 import '../js_backend/mirrors_data.dart'; | 27 import '../js_backend/mirrors_data.dart'; |
| 27 import '../js_backend/native_data.dart'; | 28 import '../js_backend/native_data.dart'; |
| 28 import '../js_backend/no_such_method_registry.dart'; | 29 import '../js_backend/no_such_method_registry.dart'; |
| 29 import '../library_loader.dart'; | 30 import '../library_loader.dart'; |
| 30 import '../native/resolver.dart'; | 31 import '../native/resolver.dart'; |
| 31 import '../serialization/task.dart'; | 32 import '../serialization/task.dart'; |
| 32 import '../patch_parser.dart'; | 33 import '../patch_parser.dart'; |
| 33 import '../resolved_uri_translator.dart'; | 34 import '../resolved_uri_translator.dart'; |
| 34 import '../universe/call_structure.dart'; | 35 import '../universe/call_structure.dart'; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 new MirrorsResolutionAnalysisImpl(backend, _compiler.resolution); | 107 new MirrorsResolutionAnalysisImpl(backend, _compiler.resolution); |
| 107 | 108 |
| 108 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() { | 109 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() { |
| 109 return new ResolutionRuntimeTypesNeedBuilderImpl( | 110 return new ResolutionRuntimeTypesNeedBuilderImpl( |
| 110 elementEnvironment, _compiler.types); | 111 elementEnvironment, _compiler.types); |
| 111 } | 112 } |
| 112 | 113 |
| 113 ResolutionWorldBuilder createResolutionWorldBuilder( | 114 ResolutionWorldBuilder createResolutionWorldBuilder( |
| 114 NativeBasicData nativeBasicData, | 115 NativeBasicData nativeBasicData, |
| 115 NativeDataBuilder nativeDataBuilder, | 116 NativeDataBuilder nativeDataBuilder, |
| 117 InterceptorDataBuilder interceptorDataBuilder, |
| 116 SelectorConstraintsStrategy selectorConstraintsStrategy) { | 118 SelectorConstraintsStrategy selectorConstraintsStrategy) { |
| 117 return new ElementResolutionWorldBuilder( | 119 return new ElementResolutionWorldBuilder( |
| 118 _compiler.backend, | 120 _compiler.backend, |
| 119 _compiler.resolution, | 121 _compiler.resolution, |
| 120 nativeBasicData, | 122 nativeBasicData, |
| 121 nativeDataBuilder, | 123 nativeDataBuilder, |
| 124 interceptorDataBuilder, |
| 122 selectorConstraintsStrategy); | 125 selectorConstraintsStrategy); |
| 123 } | 126 } |
| 124 | 127 |
| 125 WorkItemBuilder createResolutionWorkItemBuilder( | 128 WorkItemBuilder createResolutionWorkItemBuilder( |
| 126 ImpactTransformer impactTransformer) { | 129 ImpactTransformer impactTransformer) { |
| 127 return new ResolutionWorkItemBuilder(_compiler.resolution); | 130 return new ResolutionWorkItemBuilder(_compiler.resolution); |
| 128 } | 131 } |
| 129 | 132 |
| 130 FunctionEntity computeMain( | 133 FunctionEntity computeMain( |
| 131 LibraryElement mainApp, WorldImpactBuilder impactBuilder) { | 134 LibraryElement mainApp, WorldImpactBuilder impactBuilder) { |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 } | 643 } |
| 641 } | 644 } |
| 642 }); | 645 }); |
| 643 }); | 646 }); |
| 644 } | 647 } |
| 645 | 648 |
| 646 _compiler.libraryLoader.libraries | 649 _compiler.libraryLoader.libraries |
| 647 .forEach(processJsInteropAnnotationsInLibrary); | 650 .forEach(processJsInteropAnnotationsInLibrary); |
| 648 } | 651 } |
| 649 } | 652 } |
| OLD | NEW |