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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/universe/resolution_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
index c5b6356d1547f67e974a42ea57a492ac4f358a78..3000e38ddca200d3f4b71f4cf46adcf67a5b6d52 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -335,6 +335,7 @@ abstract class ResolutionWorldBuilderBase
final NativeBasicData _nativeBasicData;
final NativeDataBuilder _nativeDataBuilder;
final InterceptorDataBuilder _interceptorDataBuilder;
+ final BackendUsageBuilder _backendUsageBuilder;
final SelectorConstraintsStrategy selectorConstraintsStrategy;
@@ -367,6 +368,7 @@ abstract class ResolutionWorldBuilderBase
this._nativeBasicData,
this._nativeDataBuilder,
this._interceptorDataBuilder,
+ this._backendUsageBuilder,
this.selectorConstraintsStrategy) {
_allFunctions = new FunctionSetBuilder();
}
@@ -924,6 +926,7 @@ abstract class KernelResolutionWorldBuilderBase
NativeBasicData nativeBasicData,
NativeDataBuilder nativeDataBuilder,
InterceptorDataBuilder interceptorDataBuilder,
+ BackendUsageBuilder backendUsageBuilder,
SelectorConstraintsStrategy selectorConstraintsStrategy)
: super(
elementEnvironment,
@@ -931,6 +934,7 @@ abstract class KernelResolutionWorldBuilderBase
nativeBasicData,
nativeDataBuilder,
interceptorDataBuilder,
+ backendUsageBuilder,
selectorConstraintsStrategy);
@override
@@ -942,9 +946,9 @@ abstract class KernelResolutionWorldBuilderBase
commonElements: _commonElements,
nativeData: _nativeDataBuilder.close(),
interceptorData: _interceptorDataBuilder.close(),
+ backendUsage: _backendUsageBuilder.close(),
// TODO(johnniwinther): Compute these.
constantSystem: null,
- backendUsage: null,
resolutionWorldBuilder: this,
functionSet: _allFunctions.close(),
allTypedefs: _allTypedefs,
« no previous file with comments | « pkg/compiler/lib/src/universe/element_world_builder.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698