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

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

Issue 2315973002: When registering deferred constant, use canonical output unit. (Closed)
Patch Set: inline _getCanonicalUnit vars Created 4 years, 3 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/deferred_load.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index 6803b0532857c76525207e88b9159770bd69d9e7..2afb84928c48f2e7cc450e7f4eb100d1c3ddc9ba 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -320,6 +320,7 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
// emitter is used it will fail here.
JavaScriptBackend backend = compiler.backend;
full.Emitter emitter = backend.emitter.emitter;
+ assert(outputUnit.name != null || outputUnit.isMainOutput);
OutputUnitInfo info = new OutputUnitInfo(
outputUnit.name, emitter.outputBuffers[outputUnit].length);
info.imports.addAll(outputUnit.imports
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698