Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class Universe { | 5 class Universe { |
| 6 Map<Element, String> generatedCode; | 6 Map<Element, String> generatedCode; |
| 7 Map<Element, String> generatedBailoutCode; | 7 Map<Element, String> generatedBailoutCode; |
| 8 final Set<ClassElement> instantiatedClasses; | 8 final Set<ClassElement> instantiatedClasses; |
| 9 final Set<SourceString> instantiatedClassInstanceFields; | 9 final Set<SourceString> instantiatedClassInstanceFields; |
| 10 final Set<FunctionElement> staticFunctionsNeedingGetter; | 10 final Set<FunctionElement> staticFunctionsNeedingGetter; |
| 11 final Map<SourceString, Set<Selector>> invokedNames; | 11 final Map<SourceString, Set<Selector>> invokedNames; |
| 12 final Map<SourceString, Set<Selector>> invokedGetters; | 12 final Map<SourceString, Set<Selector>> invokedGetters; |
| 13 final Map<SourceString, Set<Selector>> invokedSetters; | 13 final Map<SourceString, Set<Selector>> invokedSetters; |
| 14 final Map<SourceString, ClassElement> invokedFieldSetters; | |
|
Mads Ager (google)
2012/06/07 07:56:21
The changes in this file are not used at this poin
Søren Gjesse
2012/06/07 08:06:12
True, removed. I thing I wanted to put the informa
| |
| 14 // TODO(ngeoffray): This should be a Set<Type>. | 15 // TODO(ngeoffray): This should be a Set<Type>. |
| 15 final Set<Element> isChecks; | 16 final Set<Element> isChecks; |
| 16 final RuntimeTypeInformation rti; | 17 final RuntimeTypeInformation rti; |
| 17 | 18 |
| 18 Universe() : generatedCode = new Map<Element, String>(), | 19 Universe() : generatedCode = new Map<Element, String>(), |
| 19 generatedBailoutCode = new Map<Element, String>(), | 20 generatedBailoutCode = new Map<Element, String>(), |
| 20 instantiatedClasses = new Set<ClassElement>(), | 21 instantiatedClasses = new Set<ClassElement>(), |
| 21 instantiatedClassInstanceFields = new Set<SourceString>(), | 22 instantiatedClassInstanceFields = new Set<SourceString>(), |
| 22 staticFunctionsNeedingGetter = new Set<FunctionElement>(), | 23 staticFunctionsNeedingGetter = new Set<FunctionElement>(), |
| 23 invokedNames = new Map<SourceString, Set<Selector>>(), | 24 invokedNames = new Map<SourceString, Set<Selector>>(), |
| 24 invokedGetters = new Map<SourceString, Set<Selector>>(), | 25 invokedGetters = new Map<SourceString, Set<Selector>>(), |
| 25 invokedSetters = new Map<SourceString, Set<Selector>>(), | 26 invokedSetters = new Map<SourceString, Set<Selector>>(), |
| 27 invokedFieldSetters = new Map<SourceString, ClassElement>(), | |
| 26 isChecks = new Set<Element>(), | 28 isChecks = new Set<Element>(), |
| 27 rti = new RuntimeTypeInformation(); | 29 rti = new RuntimeTypeInformation(); |
| 28 | 30 |
| 29 void addGeneratedCode(WorkItem work, String code) { | 31 void addGeneratedCode(WorkItem work, String code) { |
| 30 generatedCode[work.element] = code; | 32 generatedCode[work.element] = code; |
| 31 } | 33 } |
| 32 | 34 |
| 33 void addBailoutCode(WorkItem work, String code) { | 35 void addBailoutCode(WorkItem work, String code) { |
| 34 generatedBailoutCode[work.element] = code; | 36 generatedBailoutCode[work.element] = code; |
| 35 } | 37 } |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 333 | 335 |
| 334 return false; | 336 return false; |
| 335 } | 337 } |
| 336 | 338 |
| 337 bool operator ==(other) { | 339 bool operator ==(other) { |
| 338 if (other is !TypedSelector) return false; | 340 if (other is !TypedSelector) return false; |
| 339 if (other.receiverType !== receiverType) return false; | 341 if (other.receiverType !== receiverType) return false; |
| 340 return super == other; | 342 return super == other; |
| 341 } | 343 } |
| 342 } | 344 } |
| OLD | NEW |