Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution_strategy.dart

Issue 2869753002: Pass NativeDataBuilder through ResolutionWorldBuilder (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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';
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 JavaScriptBackend backend) => 105 JavaScriptBackend backend) =>
106 new MirrorsResolutionAnalysisImpl(backend, _compiler.resolution); 106 new MirrorsResolutionAnalysisImpl(backend, _compiler.resolution);
107 107
108 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() { 108 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() {
109 return new ResolutionRuntimeTypesNeedBuilderImpl( 109 return new ResolutionRuntimeTypesNeedBuilderImpl(
110 elementEnvironment, _compiler.types); 110 elementEnvironment, _compiler.types);
111 } 111 }
112 112
113 ResolutionWorldBuilder createResolutionWorldBuilder( 113 ResolutionWorldBuilder createResolutionWorldBuilder(
114 NativeBasicData nativeBasicData, 114 NativeBasicData nativeBasicData,
115 NativeDataBuilder nativeDataBuilder,
115 SelectorConstraintsStrategy selectorConstraintsStrategy) { 116 SelectorConstraintsStrategy selectorConstraintsStrategy) {
116 return new ElementResolutionWorldBuilder( 117 return new ElementResolutionWorldBuilder(
117 _compiler.backend, _compiler.resolution, selectorConstraintsStrategy); 118 _compiler.backend,
119 _compiler.resolution,
120 nativeBasicData,
121 nativeDataBuilder,
122 selectorConstraintsStrategy);
118 } 123 }
119 124
120 WorkItemBuilder createResolutionWorkItemBuilder( 125 WorkItemBuilder createResolutionWorkItemBuilder(
121 ImpactTransformer impactTransformer) { 126 ImpactTransformer impactTransformer) {
122 return new ResolutionWorkItemBuilder(_compiler.resolution); 127 return new ResolutionWorkItemBuilder(_compiler.resolution);
123 } 128 }
124 129
125 FunctionEntity computeMain( 130 FunctionEntity computeMain(
126 LibraryElement mainApp, WorldImpactBuilder impactBuilder) { 131 LibraryElement mainApp, WorldImpactBuilder impactBuilder) {
127 if (mainApp == null) return null; 132 if (mainApp == null) return null;
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 640 }
636 } 641 }
637 }); 642 });
638 }); 643 });
639 } 644 }
640 645
641 _compiler.libraryLoader.libraries 646 _compiler.libraryLoader.libraries
642 .forEach(processJsInteropAnnotationsInLibrary); 647 .forEach(processJsInteropAnnotationsInLibrary);
643 } 648 }
644 } 649 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/universe/element_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698