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

Side by Side Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2826673002: Remove JavaScriptBackend from ClosedWorldBase (Closed)
Patch Set: Fix Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/element_world_builder.dart ('k') | pkg/compiler/lib/src/universe/world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698