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

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

Issue 10377166: Prepare to have more than one universe. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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 | « dart/lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/universe.dart
diff --git a/dart/lib/compiler/implementation/universe.dart b/dart/lib/compiler/implementation/universe.dart
index 5769fb636fc0b4f08daf813f8d11e4e64a4e4699..8cdf683360c97470d81d24a06a4cf8adef55b659 100644
--- a/dart/lib/compiler/implementation/universe.dart
+++ b/dart/lib/compiler/implementation/universe.dart
@@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
class Universe {
- int nextFreeClassId = 0;
Map<Element, String> generatedCode;
Map<Element, String> generatedBailoutCode;
final Set<ClassElement> instantiatedClasses;
@@ -12,14 +11,12 @@ class Universe {
final Map<SourceString, Set<Selector>> invokedNames;
final Map<SourceString, Set<Selector>> invokedGetters;
final Map<SourceString, Set<Selector>> invokedSetters;
- final Map<String, LibraryElement> libraries;
// TODO(ngeoffray): This should be a Set<Type>.
final Set<Element> isChecks;
final RuntimeTypeInformation rti;
Universe() : generatedCode = new Map<Element, String>(),
generatedBailoutCode = new Map<Element, String>(),
- libraries = new Map<String, LibraryElement>(),
instantiatedClasses = new Set<ClassElement>(),
instantiatedClassInstanceFields = new Set<SourceString>(),
staticFunctionsNeedingGetter = new Set<FunctionElement>(),
@@ -29,8 +26,6 @@ class Universe {
isChecks = new Set<Element>(),
rti = new RuntimeTypeInformation();
- int getNextFreeClassId() => nextFreeClassId++;
-
void addGeneratedCode(WorkItem work, String code) {
generatedCode[work.element] = code;
}
@@ -50,18 +45,15 @@ class Universe {
}
bool hasInvocation(Element member, Compiler compiler) {
- return hasMatchingSelector(
- compiler.universe.invokedNames[member.name], member, compiler);
+ return hasMatchingSelector(invokedNames[member.name], member, compiler);
}
bool hasGetter(Element member, Compiler compiler) {
- return hasMatchingSelector(
- compiler.universe.invokedGetters[member.name], member, compiler);
+ return hasMatchingSelector(invokedGetters[member.name], member, compiler);
}
bool hasSetter(Element member, Compiler compiler) {
- return hasMatchingSelector(
- compiler.universe.invokedSetters[member.name], member, compiler);
+ return hasMatchingSelector(invokedSetters[member.name], member, compiler);
}
}
« no previous file with comments | « dart/lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698