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

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

Issue 1435853002: Register closures using StaticUse. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment 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
« no previous file with comments | « pkg/compiler/lib/src/universe/use.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/universe/world_impact.dart
diff --git a/pkg/compiler/lib/src/universe/world_impact.dart b/pkg/compiler/lib/src/universe/world_impact.dart
index 040de93fbb24013bcedbc02cf6207cd9b8dce0cb..401a21e06cc1f2fed2066ea07eacf2249aeca846 100644
--- a/pkg/compiler/lib/src/universe/world_impact.dart
+++ b/pkg/compiler/lib/src/universe/world_impact.dart
@@ -34,8 +34,6 @@ class WorldImpact {
Iterable<TypeUse> get typeUses => const <TypeUse>[];
- Iterable<LocalFunctionElement> get closures => const <LocalFunctionElement>[];
-
String toString() => dump(this);
static String dump(WorldImpact worldImpact) {
@@ -55,7 +53,6 @@ class WorldImpact {
add('dynamic uses', worldImpact.dynamicUses);
add('static uses', worldImpact.staticUses);
add('type uses', worldImpact.typeUses);
- add('closures', worldImpact.closures);
}
}
@@ -104,18 +101,6 @@ class WorldImpactBuilder {
Iterable<StaticUse> get staticUses {
return _staticUses != null ? _staticUses : const <StaticUse>[];
}
-
- void registerClosure(LocalFunctionElement element) {
- if (_closures == null) {
- _closures = new Setlet<LocalFunctionElement>();
- }
- _closures.add(element);
- }
-
- Iterable<LocalFunctionElement> get closures {
- return _closures != null
- ? _closures : const <LocalFunctionElement>[];
- }
}
/// Mutable implementation of [WorldImpact] used to transform
@@ -170,9 +155,6 @@ class TransformedWorldImpact implements WorldImpact {
return _staticUses != null ? _staticUses : worldImpact.staticUses;
}
- @override
- Iterable<LocalFunctionElement> get closures => worldImpact.closures;
-
String toString() {
StringBuffer sb = new StringBuffer();
sb.write('TransformedWorldImpact($worldImpact)');
« no previous file with comments | « pkg/compiler/lib/src/universe/use.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698