| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 part of world_builder; | 5 part of world_builder; |
| 6 | 6 |
| 7 abstract class ResolutionWorldBuilder implements WorldBuilder, OpenWorld { | 7 abstract class ResolutionWorldBuilder implements WorldBuilder, OpenWorld { |
| 8 /// Set of all local functions in the program. Used by the mirror tracking | 8 /// Set of all local functions in the program. Used by the mirror tracking |
| 9 /// system to find all live closure instances. | 9 /// system to find all live closure instances. |
| 10 Iterable<Local> get localFunctions; | 10 Iterable<Local> get localFunctions; |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 class KernelResolutionWorldBuilder extends ResolutionWorldBuilderBase { | 789 class KernelResolutionWorldBuilder extends ResolutionWorldBuilderBase { |
| 790 KernelResolutionWorldBuilder( | 790 KernelResolutionWorldBuilder( |
| 791 ElementEnvironment elementEnvironment, | 791 ElementEnvironment elementEnvironment, |
| 792 CommonElements commonElements, | 792 CommonElements commonElements, |
| 793 NativeBasicData nativeBasicData, | 793 NativeBasicData nativeBasicData, |
| 794 SelectorConstraintsStrategy selectorConstraintsStrategy) | 794 SelectorConstraintsStrategy selectorConstraintsStrategy) |
| 795 : super(elementEnvironment, commonElements, nativeBasicData, | 795 : super(elementEnvironment, commonElements, nativeBasicData, |
| 796 selectorConstraintsStrategy); | 796 selectorConstraintsStrategy); |
| 797 | 797 |
| 798 @override | 798 @override |
| 799 ClosedWorld closeWorld(DiagnosticReporter reporter) { | 799 ClosedWorld closeWorld() { |
| 800 // TODO(johnniwinther): Implement this. | 800 // TODO(johnniwinther): Implement this. |
| 801 return null; | 801 return _closedWorldCache = new KernelClosedWorld( |
| 802 commonElements: _commonElements, |
| 803 // TODO(johnniwinther): Compute these. |
| 804 constantSystem: null, |
| 805 nativeData: null, |
| 806 interceptorData: null, |
| 807 backendUsage: null, |
| 808 resolutionWorldBuilder: this, |
| 809 functionSetBuilder: _allFunctions, |
| 810 allTypedefs: _allTypedefs, |
| 811 mixinUses: _mixinUses, |
| 812 // TODO(johnniwinther): Compute this. |
| 813 typesImplementedBySubclasses: null, |
| 814 classHierarchyNodes: _classHierarchyNodes, |
| 815 classSets: _classSets); |
| 802 } | 816 } |
| 803 | 817 |
| 804 @override | 818 @override |
| 805 void registerClass(ClassEntity cls) { | 819 void registerClass(ClassEntity cls) { |
| 806 throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass'); | 820 throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass'); |
| 807 } | 821 } |
| 808 } | 822 } |
| OLD | NEW |