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

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

Issue 2873113004: Add equivalence check of NativeData and InterceptorData (Closed)
Patch Set: Created 3 years, 7 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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 nativeBasicData, 931 nativeBasicData,
932 nativeDataBuilder, 932 nativeDataBuilder,
933 interceptorDataBuilder, 933 interceptorDataBuilder,
934 selectorConstraintsStrategy); 934 selectorConstraintsStrategy);
935 935
936 @override 936 @override
937 ClosedWorld closeWorld() { 937 ClosedWorld closeWorld() {
938 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses = 938 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses =
939 populateHierarchyNodes(); 939 populateHierarchyNodes();
940 _closed = true; 940 _closed = true;
941 // TODO(johnniwinther): Implement this.
942 return _closedWorldCache = new KernelClosedWorld( 941 return _closedWorldCache = new KernelClosedWorld(
943 commonElements: _commonElements, 942 commonElements: _commonElements,
943 nativeData: _nativeDataBuilder.close(),
944 interceptorData: _interceptorDataBuilder.close(),
944 // TODO(johnniwinther): Compute these. 945 // TODO(johnniwinther): Compute these.
945 constantSystem: null, 946 constantSystem: null,
946 nativeData: _nativeDataBuilder.close(),
947 interceptorData: null,
948 backendUsage: null, 947 backendUsage: null,
949 resolutionWorldBuilder: this, 948 resolutionWorldBuilder: this,
950 functionSet: _allFunctions.close(), 949 functionSet: _allFunctions.close(),
951 allTypedefs: _allTypedefs, 950 allTypedefs: _allTypedefs,
952 mixinUses: _mixinUses, 951 mixinUses: _mixinUses,
953 typesImplementedBySubclasses: typesImplementedBySubclasses, 952 typesImplementedBySubclasses: typesImplementedBySubclasses,
954 classHierarchyNodes: _classHierarchyNodes, 953 classHierarchyNodes: _classHierarchyNodes,
955 classSets: _classSets); 954 classSets: _classSets);
956 } 955 }
957 956
958 @override 957 @override
959 void registerClass(ClassEntity cls) { 958 void registerClass(ClassEntity cls) {
960 throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass'); 959 throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass');
961 } 960 }
962 } 961 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698