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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10535074: Add field getters and setters to the collection of getters and setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed code in comments Created 8 years, 6 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 | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/universe.dart
diff --git a/lib/compiler/implementation/universe.dart b/lib/compiler/implementation/universe.dart
index 8cdf683360c97470d81d24a06a4cf8adef55b659..635cd737cf1c19b9d2425842d930e1644221f751 100644
--- a/lib/compiler/implementation/universe.dart
+++ b/lib/compiler/implementation/universe.dart
@@ -11,6 +11,8 @@ class Universe {
final Map<SourceString, Set<Selector>> invokedNames;
final Map<SourceString, Set<Selector>> invokedGetters;
final Map<SourceString, Set<Selector>> invokedSetters;
+ final Map<SourceString, Set<Selector>> fieldGetters;
+ final Map<SourceString, Set<Selector>> fieldSetters;
// TODO(ngeoffray): This should be a Set<Type>.
final Set<Element> isChecks;
final RuntimeTypeInformation rti;
@@ -23,6 +25,8 @@ class Universe {
invokedNames = new Map<SourceString, Set<Selector>>(),
invokedGetters = new Map<SourceString, Set<Selector>>(),
invokedSetters = new Map<SourceString, Set<Selector>>(),
+ fieldGetters = new Map<SourceString, Set<Selector>>(),
+ fieldSetters = new Map<SourceString, Set<Selector>>(),
isChecks = new Set<Element>(),
rti = new RuntimeTypeInformation();
@@ -48,13 +52,21 @@ class Universe {
return hasMatchingSelector(invokedNames[member.name], member, compiler);
}
- bool hasGetter(Element member, Compiler compiler) {
+ bool hasInvokedGetter(Element member, Compiler compiler) {
return hasMatchingSelector(invokedGetters[member.name], member, compiler);
}
- bool hasSetter(Element member, Compiler compiler) {
+ bool hasInvokedSetter(Element member, Compiler compiler) {
return hasMatchingSelector(invokedSetters[member.name], member, compiler);
}
+
+ bool hasFieldGetter(Element member, Compiler compiler) {
+ return hasMatchingSelector(fieldGetters[member.name], member, compiler);
+ }
+
+ bool hasFieldSetter(Element member, Compiler compiler) {
+ return hasMatchingSelector(fieldSetters[member.name], member, compiler);
+ }
}
class SelectorKind {
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698