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

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

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index cd143cafad31acc107104abe7ec877ef8db618f2..decf1df0cb9b55e705d52239074863d834b276ee 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -32,7 +32,6 @@ import 'dump_info.dart' show DumpInfoTask;
import 'elements/elements.dart';
import 'elements/entities.dart';
import 'elements/resolution_types.dart' show ResolutionDartType, Types;
-import 'elements/types.dart' show DartTypes;
import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer;
import 'environment.dart';
import 'frontend_strategy.dart';
@@ -84,7 +83,6 @@ abstract class Compiler {
Measurer get measurer;
final IdGenerator idGenerator = new IdGenerator();
- DartTypes types;
FrontendStrategy frontendStrategy;
BackendStrategy backendStrategy;
CompilerDiagnosticReporter _reporter;
@@ -197,7 +195,6 @@ abstract class Compiler {
? new KernelBackendStrategyImpl(this)
: new ElementBackendStrategy(this);
_resolution = createResolution();
- types = new Types(_resolution);
if (options.verbose) {
progress = new Stopwatch()..start();
@@ -1294,8 +1291,11 @@ class CompilerResolution implements Resolution {
<Element, ResolutionImpact>{};
final Map<Element, WorldImpact> _worldImpactCache = <Element, WorldImpact>{};
bool retainCachesForTesting = false;
+ Types _types;
- CompilerResolution(this._compiler);
+ CompilerResolution(this._compiler) {
+ _types = new Types(this);
+ }
@override
DiagnosticReporter get reporter => _compiler.reporter;
@@ -1312,7 +1312,7 @@ class CompilerResolution implements Resolution {
_compiler.frontendStrategy.commonElements;
@override
- Types get types => _compiler.types;
+ Types get types => _types;
@override
Target get target => _compiler.backend.target;
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/elements/resolution_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698