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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.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 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 d9226e791119327c6ef6cc7a09f432fcda5ebcb9..991cd53b03b4c41716f4fce5356c146925fcff6f 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -333,6 +333,7 @@ abstract class ResolutionWorldBuilderBase
final CommonElements _commonElements;
final NativeBasicData _nativeBasicData;
+ final NativeDataBuilder _nativeDataBuilder;
final SelectorConstraintsStrategy selectorConstraintsStrategy;
@@ -359,8 +360,12 @@ abstract class ResolutionWorldBuilderBase
bool get isClosed => _closed;
- ResolutionWorldBuilderBase(this._elementEnvironment, this._commonElements,
- this._nativeBasicData, this.selectorConstraintsStrategy) {
+ ResolutionWorldBuilderBase(
+ this._elementEnvironment,
+ this._commonElements,
+ this._nativeBasicData,
+ this._nativeDataBuilder,
+ this.selectorConstraintsStrategy) {
_allFunctions = new FunctionSetBuilder();
}
@@ -915,9 +920,10 @@ abstract class KernelResolutionWorldBuilderBase
ElementEnvironment elementEnvironment,
CommonElements commonElements,
NativeBasicData nativeBasicData,
+ NativeDataBuilder nativeDataBuilder,
SelectorConstraintsStrategy selectorConstraintsStrategy)
: super(elementEnvironment, commonElements, nativeBasicData,
- selectorConstraintsStrategy);
+ nativeDataBuilder, selectorConstraintsStrategy);
@override
ClosedWorld closeWorld() {
@@ -929,7 +935,7 @@ abstract class KernelResolutionWorldBuilderBase
commonElements: _commonElements,
// TODO(johnniwinther): Compute these.
constantSystem: null,
- nativeData: null,
+ nativeData: _nativeDataBuilder.close(),
interceptorData: null,
backendUsage: null,
resolutionWorldBuilder: this,
« 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