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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12226074: Cleanup universe to not have backend related things. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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: sdk/lib/_internal/compiler/implementation/compiler.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/compiler.dart (revision 18239)
+++ sdk/lib/_internal/compiler/implementation/compiler.dart (working copy)
@@ -80,8 +80,7 @@
}
void run(Compiler compiler, CodegenEnqueuer world) {
- js.Expression code = world.universe.generatedCode[element];
- if (code != null) return;
+ if (world.isProcessed(element)) return;
compiler.codegen(this, world);
}
}
@@ -376,8 +375,8 @@
this, backend.constantSystem, isMetadata: true);
}
- ResolutionUniverse get resolverWorld => enqueuer.resolution.universe;
- CodegenUniverse get codegenWorld => enqueuer.codegen.universe;
+ Universe get resolverWorld => enqueuer.resolution.universe;
+ Universe get codegenWorld => enqueuer.codegen.universe;
int getNextFreeClassId() => nextFreeClassId++;
@@ -722,7 +721,7 @@
}
if (!REPORT_EXCESS_RESOLUTION) return;
var resolved = new Set.from(enqueuer.resolution.resolvedElements.keys);
- for (Element e in codegenWorld.generatedCode.keys) {
+ for (Element e in enqueuer.codegen.generatedCode.keys) {
resolved.remove(e);
}
for (Element e in new Set.from(resolved)) {
@@ -799,7 +798,7 @@
if (progress.elapsedMilliseconds > 500) {
// TODO(ahe): Add structured diagnostics to the compiler API and
// use it to separate this from the --verbose option.
- log('Compiled ${codegenWorld.generatedCode.length} methods.');
+ log('Compiled ${enqueuer.codegen.generatedCode.length} methods.');
progress.reset();
}
backend.codegen(work);

Powered by Google App Engine
This is Rietveld 408576698