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

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

Issue 2875313002: Access BackendUsage through ClosedWorld (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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() { 113 RuntimeTypesNeedBuilder createRuntimeTypesNeedBuilder() {
114 return new ResolutionRuntimeTypesNeedBuilderImpl( 114 return new ResolutionRuntimeTypesNeedBuilderImpl(
115 elementEnvironment, _compiler.types); 115 elementEnvironment, _compiler.types);
116 } 116 }
117 117
118 ResolutionWorldBuilder createResolutionWorldBuilder( 118 ResolutionWorldBuilder createResolutionWorldBuilder(
119 NativeBasicData nativeBasicData, 119 NativeBasicData nativeBasicData,
120 NativeDataBuilder nativeDataBuilder, 120 NativeDataBuilder nativeDataBuilder,
121 InterceptorDataBuilder interceptorDataBuilder, 121 InterceptorDataBuilder interceptorDataBuilder,
122 BackendUsageBuilder backendUsageBuilder,
122 SelectorConstraintsStrategy selectorConstraintsStrategy) { 123 SelectorConstraintsStrategy selectorConstraintsStrategy) {
123 return new ElementResolutionWorldBuilder( 124 return new ElementResolutionWorldBuilder(
124 _compiler.backend, 125 _compiler.backend,
125 _compiler.resolution, 126 _compiler.resolution,
126 nativeBasicData, 127 nativeBasicData,
127 nativeDataBuilder, 128 nativeDataBuilder,
128 interceptorDataBuilder, 129 interceptorDataBuilder,
130 backendUsageBuilder,
129 selectorConstraintsStrategy); 131 selectorConstraintsStrategy);
130 } 132 }
131 133
132 WorkItemBuilder createResolutionWorkItemBuilder( 134 WorkItemBuilder createResolutionWorkItemBuilder(
133 NativeBasicData nativeBasicData, 135 NativeBasicData nativeBasicData,
134 NativeDataBuilder nativeDataBuilder, 136 NativeDataBuilder nativeDataBuilder,
135 ImpactTransformer impactTransformer) { 137 ImpactTransformer impactTransformer) {
136 return new ResolutionWorkItemBuilder(_compiler.resolution); 138 return new ResolutionWorkItemBuilder(_compiler.resolution);
137 } 139 }
138 140
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 @override 665 @override
664 WorkItem createWorkItem(MemberElement element) { 666 WorkItem createWorkItem(MemberElement element) {
665 assert(invariant(element, element.isDeclaration)); 667 assert(invariant(element, element.isDeclaration));
666 if (element.isMalformed) return null; 668 if (element.isMalformed) return null;
667 669
668 assert(invariant(element, element is AnalyzableElement, 670 assert(invariant(element, element is AnalyzableElement,
669 message: 'Element $element is not analyzable.')); 671 message: 'Element $element is not analyzable.'));
670 return _resolution.createWorkItem(element); 672 return _resolution.createWorkItem(element);
671 } 673 }
672 } 674 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/ssa/graph_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698