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

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

Issue 2549423002: Change Enqueuer to use Entity instead of Element. (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/common/backend_api.dart ('k') | pkg/compiler/lib/src/dump_info.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 16ef47def239ff05060757451ce5cd778b56b6dd..190e08bcb7888bcc5a710fdae62551e3bae9c147 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -908,7 +908,7 @@ abstract class Compiler implements LibraryLoaderListener {
});
}
if (!REPORT_EXCESS_RESOLUTION) return;
- var resolved = new Set.from(enqueuer.resolution.processedElements);
+ var resolved = new Set.from(enqueuer.resolution.processedEntities);
for (Element e in enqueuer.codegen.processedEntities) {
resolved.remove(e);
}
@@ -939,7 +939,7 @@ abstract class Compiler implements LibraryLoaderListener {
// TODO(ahe): Add structured diagnostics to the compiler API and
// use it to separate this from the --verbose option.
assert(phase == PHASE_RESOLVING);
- reporter.log('Resolved ${enqueuer.resolution.processedElements.length} '
+ reporter.log('Resolved ${enqueuer.resolution.processedEntities.length} '
'elements.');
progress.reset();
}
@@ -1113,7 +1113,7 @@ abstract class Compiler implements LibraryLoaderListener {
void forgetElement(Element element) {
resolution.forgetElement(element);
- enqueuer.forgetElement(element);
+ enqueuer.forgetEntity(element);
if (element is MemberElement) {
for (Element closure in element.nestedClosures) {
// TODO(ahe): It would be nice to reuse names of nested closures.
« no previous file with comments | « pkg/compiler/lib/src/common/backend_api.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698