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

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

Issue 1424923004: Add StaticUse for more precise registration of statically known element use. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index cf9ca73809dc49c4bd8c795f93aaf0cde1d40897..e6738a4e24e5c542dfca6989fea7161be6acdead 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -132,6 +132,8 @@ import 'universe/selector.dart' show
Selector;
import 'universe/universe.dart' show
Universe;
+import 'universe/use.dart' show
+ StaticUse;
import 'universe/world_impact.dart' show
WorldImpact;
import 'util/util.dart' show
@@ -905,7 +907,7 @@ abstract class Compiler {
parameter);
mainFunction = backend.helperForMainArity();
// Don't warn about main not being used:
- enqueuer.resolution.registerStaticUse(main);
+ enqueuer.resolution.registerStaticUse(new StaticUse.foreignUse(main));
sigurdm 2015/11/02 11:19:56 ?
Johnni Winther 2015/11/02 13:23:25 The registration itself is a hack.
});
}
}

Powered by Google App Engine
This is Rietveld 408576698