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

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

Issue 2908153003: It's alive! (Closed)
Patch Set: Updated cf. comments Created 3 years, 7 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_elements.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/deferred_load.dart
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart
index baeb2aa1a46cc89a5f8df54478a8f4efe1c5bad9..7b8ddf57c44ee1187215b3938454e25166297a47 100644
--- a/pkg/compiler/lib/src/deferred_load.dart
+++ b/pkg/compiler/lib/src/deferred_load.dart
@@ -164,9 +164,11 @@ class DeferredLoadTask extends CompilerTask {
DiagnosticReporter get reporter => compiler.reporter;
/// Returns the [OutputUnit] where [element] belongs.
- OutputUnit outputUnitForElement(Element element) {
+ OutputUnit outputUnitForElement(Entity entity) {
+ // TODO(johnniwinther): Support use of entities by splitting maps by
+ // entity kind.
if (!isProgramSplit) return mainOutputUnit;
-
+ Element element = entity;
element = element.implementation;
while (!_elementToOutputUnit.containsKey(element)) {
// TODO(21051): workaround: it looks like we output annotation constants
@@ -184,12 +186,12 @@ class DeferredLoadTask extends CompilerTask {
}
/// Returns the [OutputUnit] where [element] belongs.
- OutputUnit outputUnitForClass(ClassElement element) {
+ OutputUnit outputUnitForClass(ClassEntity element) {
return outputUnitForElement(element);
}
/// Returns the [OutputUnit] where [element] belongs.
- OutputUnit outputUnitForMember(MemberElement element) {
+ OutputUnit outputUnitForMember(MemberEntity element) {
return outputUnitForElement(element);
}
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698