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

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

Issue 2810633003: Add kernel/closed_world2_test (Closed)
Patch Set: Add TODOs. 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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 @override 778 @override
779 bool isMemberUsed(MemberEntity member) { 779 bool isMemberUsed(MemberEntity member) {
780 if (member.isInstanceMember) { 780 if (member.isInstanceMember) {
781 _MemberUsage usage = _instanceMemberUsage[member]; 781 _MemberUsage usage = _instanceMemberUsage[member];
782 if (usage != null && usage.hasUse) return true; 782 if (usage != null && usage.hasUse) return true;
783 } 783 }
784 _StaticMemberUsage usage = _staticMemberUsage[member]; 784 _StaticMemberUsage usage = _staticMemberUsage[member];
785 return usage != null && usage.hasUse; 785 return usage != null && usage.hasUse;
786 } 786 }
787 } 787 }
788
789 class KernelResolutionWorldBuilder extends ResolutionWorldBuilderBase {
790 KernelResolutionWorldBuilder(
791 ElementEnvironment elementEnvironment,
792 CommonElements commonElements,
793 NativeBasicData nativeBasicData,
794 SelectorConstraintsStrategy selectorConstraintsStrategy)
795 : super(elementEnvironment, commonElements, nativeBasicData,
796 selectorConstraintsStrategy);
797
798 @override
799 ClosedWorld closeWorld(DiagnosticReporter reporter) {
800 // TODO(johnniwinther): Implement this.
801 return null;
Emily Fortuna 2017/04/10 19:50:58 throw instead?
Johnni Winther 2017/04/11 07:58:58 This is called at the end of the test in computeCl
802 }
803
804 @override
805 void registerClass(ClassEntity cls) {
806 throw new UnimplementedError('KernelResolutionWorldBuilder.registerClass');
807 }
808 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | tests/compiler/dart2js/kernel/closed_world2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698