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

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

Issue 2615623002: Revert "Reduce use of Element in optimize.dart" (Closed)
Patch Set: Created 3 years, 11 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/universe/world_builder.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/world.dart
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart
index 1afe13b6f8430b7a530ce589531c03169d541eaa..a687f330908c1108a015e315acd56e4240c14ad4 100644
--- a/pkg/compiler/lib/src/world.dart
+++ b/pkg/compiler/lib/src/world.dart
@@ -252,7 +252,7 @@ abstract class ClosedWorld implements World {
FunctionSet get allFunctions;
/// Returns `true` if the field [element] is known to be effectively final.
- bool fieldNeverChanges(MemberElement element);
+ bool fieldNeverChanges(Element element);
/// Extends the receiver type [mask] for calling [selector] to take live
/// `noSuchMethod` handlers into account.
@@ -263,7 +263,7 @@ abstract class ClosedWorld implements World {
/// Returns the single [Element] that matches a call to [selector] on a
/// receiver of type [mask]. If multiple targets exist, `null` is returned.
- MemberElement locateSingleElement(Selector selector, TypeMask mask);
+ Element locateSingleElement(Selector selector, TypeMask mask);
/// Returns the single field that matches a call to [selector] on a
/// receiver of type [mask]. If multiple targets exist or the single target
@@ -1013,7 +1013,7 @@ class ClosedWorldImpl implements ClosedWorld, ClosedWorldRefiner {
return functionsCalledInLoop.contains(element.declaration);
}
- bool fieldNeverChanges(MemberElement element) {
+ bool fieldNeverChanges(Element element) {
if (!element.isField) return false;
if (_backend.isNative(element)) {
// Some native fields are views of data that may be changed by operations.
« no previous file with comments | « pkg/compiler/lib/src/universe/world_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698