| Index: lib/compiler/implementation/universe.dart
|
| diff --git a/lib/compiler/implementation/universe.dart b/lib/compiler/implementation/universe.dart
|
| index af79f574212eebe0905491d232372e16aa4ef077..f6eefe1047c79e134200ca9ee137ee874162b7f4 100644
|
| --- a/lib/compiler/implementation/universe.dart
|
| +++ b/lib/compiler/implementation/universe.dart
|
| @@ -12,8 +12,9 @@ class Universe {
|
| 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<DartType>.
|
| - final Set<Element> isChecks;
|
| + final Set<DartType> isChecks;
|
| + // TODO(karlklose): move this data to RuntimeTypeInformation.
|
| + Set<Element> checkedClasses;
|
| final RuntimeTypeInformation rti;
|
|
|
| Universe() : generatedCode = new Map<Element, CodeBuffer>(),
|
| @@ -25,9 +26,16 @@ class Universe {
|
| invokedSetters = new Map<SourceString, Set<Selector>>(),
|
| fieldGetters = new Map<SourceString, Set<Selector>>(),
|
| fieldSetters = new Map<SourceString, Set<Selector>>(),
|
| - isChecks = new Set<Element>(),
|
| + isChecks = new Set<DartType>(),
|
| rti = new RuntimeTypeInformation();
|
|
|
| + // TODO(karlklose): add the set of instantiatedtypes as second argument.
|
| + void computeRequiredTypes(Set<DartType> isChecks) {
|
| + assert(checkedClasses == null);
|
| + checkedClasses = new Set<Element>();
|
| + isChecks.forEach((DartType t) => checkedClasses.add(t.element));
|
| + }
|
| +
|
| void addGeneratedCode(WorkItem work, CodeBuffer codeBuffer) {
|
| generatedCode[work.element] = codeBuffer;
|
| }
|
|
|