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

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

Issue 1408383006: Rename UniverseSelector to DynamicUse and move it to use.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 1d8befa06202e4ec66adcd81e9a6c89f0e760ba9..a51d3664d858bc847a9ff6bb94ccc95a3db5620e 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -27,9 +27,8 @@ import '../../universe/call_structure.dart' show
CallStructure;
import '../../universe/selector.dart' show
Selector;
-import '../../universe/universe.dart' show
- UniverseSelector;
import '../../universe/use.dart' show
+ DynamicUse,
StaticUse;
import '../../util/maplet.dart';
@@ -273,9 +272,9 @@ class CodeGenerator extends tree_ir.StatementVisitor
Selector selector = node.selector;
TypeMask mask = node.mask;
if (selector.isGetter) {
- registry.registerDynamicUse(new UniverseSelector(selector, mask));
+ registry.registerDynamicUse(new DynamicUse(selector, mask));
} else if (selector.isSetter) {
- registry.registerDynamicUse(new UniverseSelector(selector, mask));
+ registry.registerDynamicUse(new DynamicUse(selector, mask));
} else {
assert(invariant(CURRENT_ELEMENT_SPANNABLE,
selector.isCall || selector.isOperator ||
@@ -283,8 +282,8 @@ class CodeGenerator extends tree_ir.StatementVisitor
message: 'unexpected kind ${selector.kind}'));
// TODO(sigurdm): We should find a better place to register the call.
Selector call = new Selector.callClosureFrom(selector);
- registry.registerDynamicUse(new UniverseSelector(call, null));
- registry.registerDynamicUse(new UniverseSelector(selector, mask));
+ registry.registerDynamicUse(new DynamicUse(call, null));
+ registry.registerDynamicUse(new DynamicUse(selector, mask));
}
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698