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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2908253003: Handle null literal in compile_from_dill (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 6f00df791d3e52167c07825b3aa5964c53536555..1fb5ca910b9c3be4b0d7c8eb97ec4d3f331f53a7 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -339,6 +339,7 @@ abstract class ResolutionWorldBuilderBase
final ElementEnvironment _elementEnvironment;
final CommonElements _commonElements;
+ final ConstantSystem _constantSystem;
final NativeBasicData _nativeBasicData;
final NativeDataBuilder _nativeDataBuilder;
@@ -373,6 +374,7 @@ abstract class ResolutionWorldBuilderBase
ResolutionWorldBuilderBase(
this._elementEnvironment,
this._commonElements,
+ this._constantSystem,
this._nativeBasicData,
this._nativeDataBuilder,
this._interceptorDataBuilder,
@@ -930,6 +932,7 @@ abstract class KernelResolutionWorldBuilderBase
KernelResolutionWorldBuilderBase(
ElementEnvironment elementEnvironment,
CommonElements commonElements,
+ ConstantSystem constantSystem,
NativeBasicData nativeBasicData,
NativeDataBuilder nativeDataBuilder,
InterceptorDataBuilder interceptorDataBuilder,
@@ -938,6 +941,7 @@ abstract class KernelResolutionWorldBuilderBase
: super(
elementEnvironment,
commonElements,
+ constantSystem,
nativeBasicData,
nativeDataBuilder,
interceptorDataBuilder,
@@ -954,8 +958,7 @@ abstract class KernelResolutionWorldBuilderBase
nativeData: _nativeDataBuilder.close(),
interceptorData: _interceptorDataBuilder.close(),
backendUsage: _backendUsageBuilder.close(),
- // TODO(johnniwinther): Compute these.
- constantSystem: null,
+ constantSystem: _constantSystem,
resolutionWorldBuilder: this,
functionSet: _allFunctions.close(),
allTypedefs: _allTypedefs,

Powered by Google App Engine
This is Rietveld 408576698