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

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

Issue 2289353003: Make Enqueuer a pure interface. (Closed)
Patch Set: Created 4 years, 4 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/common/codegen.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 2fc4cebcb61cfe30fd0e353170a1d78831926035..fcef27e3675b238d81530aa950c6d058666d00a9 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -37,12 +37,7 @@ import 'dump_info.dart' show DumpInfoTask;
import 'elements/elements.dart';
import 'elements/modelx.dart' show ErroneousElementX;
import 'enqueue.dart'
- show
- CodegenEnqueuer,
- Enqueuer,
- EnqueueTask,
- ResolutionEnqueuer,
- QueueFilter;
+ show Enqueuer, EnqueueTask, ResolutionEnqueuer, QueueFilter;
import 'environment.dart';
import 'id_generator.dart';
import 'io/source_information.dart' show SourceInformation;
@@ -879,7 +874,7 @@ abstract class Compiler implements LibraryLoaderListener {
}
if (!REPORT_EXCESS_RESOLUTION) return;
var resolved = new Set.from(enqueuer.resolution.processedElements);
- for (Element e in enqueuer.codegen.generatedCode.keys) {
+ for (Element e in enqueuer.codegen.processedEntities) {
resolved.remove(e);
}
for (Element e in new Set.from(resolved)) {
@@ -945,13 +940,13 @@ abstract class Compiler implements LibraryLoaderListener {
return worldImpact;
});
- WorldImpact codegen(CodegenWorkItem work, CodegenEnqueuer world) {
+ WorldImpact codegen(CodegenWorkItem work, Enqueuer world) {
assert(invariant(work.element, identical(world, enqueuer.codegen)));
if (shouldPrintProgress) {
// TODO(ahe): Add structured diagnostics to the compiler API and
// use it to separate this from the --verbose option.
- reporter
- .log('Compiled ${enqueuer.codegen.generatedCode.length} methods.');
+ reporter.log(
+ 'Compiled ${enqueuer.codegen.processedEntities.length} methods.');
progress.reset();
}
return backend.codegen(work);
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698