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

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

Issue 2625713002: Rename Enqueuer.universe to worldBuilder. (Closed)
Patch Set: Updated cf. comments Created 3 years, 11 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
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/enqueuer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index 33ee3edf672d60df49137ef228cd88d286276f5c..1b4ea407828bab5959b5d9762b73208ae3ecefb8 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -1292,7 +1292,7 @@ class JavaScriptBackend extends Backend {
}
computeMembersNeededForReflection(closedWorld);
rti.computeClassesNeedingRti(
- compiler.enqueuer.resolution.universe, closedWorld);
+ compiler.enqueuer.resolution.worldBuilder, closedWorld);
_registeredMetadata.clear();
}
@@ -2049,13 +2049,15 @@ class JavaScriptBackend extends Backend {
// can include the correct ones when including the class.
Map<ClassElement, List<LocalFunctionElement>> closureMap =
new Map<ClassElement, List<LocalFunctionElement>>();
- for (LocalFunctionElement closure in compiler.resolverWorld.allClosures) {
+ for (LocalFunctionElement closure
+ in compiler.resolutionWorldBuilder.allClosures) {
closureMap.putIfAbsent(closure.enclosingClass, () => []).add(closure);
}
bool foundClosure = false;
Set<Element> reflectableMembers = new Set<Element>();
ResolutionEnqueuer resolution = compiler.enqueuer.resolution;
- for (ClassElement cls in resolution.universe.directlyInstantiatedClasses) {
+ for (ClassElement cls
+ in resolution.worldBuilder.directlyInstantiatedClasses) {
// Do not process internal classes.
if (cls.library.isInternalLibrary || cls.isInjected) continue;
if (referencedFromMirrorSystem(cls)) {
@@ -2158,7 +2160,8 @@ class JavaScriptBackend extends Backend {
if (foundClosure) {
reflectableMembers.add(helpers.closureClass);
}
- Set<Element> closurizedMembers = compiler.resolverWorld.closurizedMembers;
+ Set<Element> closurizedMembers =
+ compiler.resolutionWorldBuilder.closurizedMembers;
if (closurizedMembers.any(reflectableMembers.contains)) {
reflectableMembers.add(helpers.boundClosureClass);
}
@@ -2394,7 +2397,7 @@ class JavaScriptBackend extends Backend {
WorldImpact onCodegenStart(ClosedWorld closedWorld) {
_closedWorld = closedWorld;
- _namer = determineNamer(_closedWorld, compiler.codegenWorld);
+ _namer = determineNamer(_closedWorld, compiler.codegenWorldBuilder);
tracer = new Tracer(_closedWorld, namer, compiler.outputProvider);
emitter.createEmitter(_namer, _closedWorld);
lookupMapAnalysis.onCodegenStart();
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/enqueuer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698