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

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

Issue 2569733002: Even less reliance on Compiler.closedWorld (Closed)
Patch Set: Updated cf. comments. Created 4 years 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
« no previous file with comments | « pkg/compiler/lib/src/universe/world_builder.dart ('k') | tests/compiler/dart2js/dump_info_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 41ceb0f41c2491b2e55756c4f2c8cf21e838a382..3de6d0f6c9df6077c1e3dfeb3f7e98dcfc578e53 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -8,7 +8,7 @@ import 'cache_strategy.dart';
import 'closure.dart' show SynthesizedCallMethodElementX;
import 'common/backend_api.dart' show BackendClasses;
import 'common.dart';
-import 'core_types.dart' show CoreClasses, CommonElements;
+import 'core_types.dart' show CoreTypes, CoreClasses, CommonElements;
import 'dart_types.dart';
import 'elements/elements.dart'
show
@@ -47,6 +47,8 @@ abstract class ClosedWorld implements World {
/// Access to core classes used in the Dart language.
CoreClasses get coreClasses;
+ CoreTypes get coreTypes;
+
CommonElements get commonElements;
CommonMasks get commonMasks;
@@ -878,6 +880,8 @@ class WorldImpl implements ClosedWorld, ClosedWorldRefiner, OpenWorld {
final CommonElements commonElements;
+ final CoreTypes coreTypes;
+
final CacheStrategy cacheStrategy;
final ResolutionWorldBuilder resolverWorld;
@@ -889,7 +893,7 @@ class WorldImpl implements ClosedWorld, ClosedWorldRefiner, OpenWorld {
}
WorldImpl(this.resolverWorld, this._backend, this.commonElements,
- CacheStrategy cacheStrategy)
+ this.coreTypes, CacheStrategy cacheStrategy)
: this.cacheStrategy = cacheStrategy,
alreadyPopulated = cacheStrategy.newSet() {
_allFunctions = new FunctionSet(this);
« no previous file with comments | « pkg/compiler/lib/src/universe/world_builder.dart ('k') | tests/compiler/dart2js/dump_info_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698