| 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, CodeBuffer> generatedCode; | 6 Map<Element, CodeBuffer> generatedCode; |
| 7 Map<Element, CodeBuffer> generatedBailoutCode; | 7 Map<Element, CodeBuffer> generatedBailoutCode; |
| 8 final Set<ClassElement> instantiatedClasses; | 8 final Set<ClassElement> instantiatedClasses; |
| 9 final Set<SourceString> instantiatedClassInstanceFields; | |
| 10 final Set<FunctionElement> staticFunctionsNeedingGetter; | 9 final Set<FunctionElement> staticFunctionsNeedingGetter; |
| 11 final Map<SourceString, Set<Selector>> invokedNames; | 10 final Map<SourceString, Set<Selector>> invokedNames; |
| 12 final Map<SourceString, Set<Selector>> invokedGetters; | 11 final Map<SourceString, Set<Selector>> invokedGetters; |
| 13 final Map<SourceString, Set<Selector>> invokedSetters; | 12 final Map<SourceString, Set<Selector>> invokedSetters; |
| 14 final Map<SourceString, Set<Selector>> fieldGetters; | 13 final Map<SourceString, Set<Selector>> fieldGetters; |
| 15 final Map<SourceString, Set<Selector>> fieldSetters; | 14 final Map<SourceString, Set<Selector>> fieldSetters; |
| 16 // TODO(ngeoffray): This should be a Set<DartType>. | 15 // TODO(ngeoffray): This should be a Set<DartType>. |
| 17 final Set<Element> isChecks; | 16 final Set<Element> isChecks; |
| 18 final RuntimeTypeInformation rti; | 17 final RuntimeTypeInformation rti; |
| 19 | 18 |
| 20 Universe() : generatedCode = new Map<Element, CodeBuffer>(), | 19 Universe() : generatedCode = new Map<Element, CodeBuffer>(), |
| 21 generatedBailoutCode = new Map<Element, CodeBuffer>(), | 20 generatedBailoutCode = new Map<Element, CodeBuffer>(), |
| 22 instantiatedClasses = new Set<ClassElement>(), | 21 instantiatedClasses = new Set<ClassElement>(), |
| 23 instantiatedClassInstanceFields = new Set<SourceString>(), | |
| 24 staticFunctionsNeedingGetter = new Set<FunctionElement>(), | 22 staticFunctionsNeedingGetter = new Set<FunctionElement>(), |
| 25 invokedNames = new Map<SourceString, Set<Selector>>(), | 23 invokedNames = new Map<SourceString, Set<Selector>>(), |
| 26 invokedGetters = new Map<SourceString, Set<Selector>>(), | 24 invokedGetters = new Map<SourceString, Set<Selector>>(), |
| 27 invokedSetters = new Map<SourceString, Set<Selector>>(), | 25 invokedSetters = new Map<SourceString, Set<Selector>>(), |
| 28 fieldGetters = new Map<SourceString, Set<Selector>>(), | 26 fieldGetters = new Map<SourceString, Set<Selector>>(), |
| 29 fieldSetters = new Map<SourceString, Set<Selector>>(), | 27 fieldSetters = new Map<SourceString, Set<Selector>>(), |
| 30 isChecks = new Set<Element>(), | 28 isChecks = new Set<Element>(), |
| 31 rti = new RuntimeTypeInformation(); | 29 rti = new RuntimeTypeInformation(); |
| 32 | 30 |
| 33 void addGeneratedCode(WorkItem work, CodeBuffer codeBuffer) { | 31 void addGeneratedCode(WorkItem work, CodeBuffer codeBuffer) { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 } | 384 } |
| 387 | 385 |
| 388 return false; | 386 return false; |
| 389 } | 387 } |
| 390 | 388 |
| 391 toString() { | 389 toString() { |
| 392 return 'Selector($kind, "${name.slowToString()}", ' | 390 return 'Selector($kind, "${name.slowToString()}", ' |
| 393 '$argumentCount, type=$receiverType)'; | 391 '$argumentCount, type=$receiverType)'; |
| 394 } | 392 } |
| 395 } | 393 } |
| OLD | NEW |