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

Side by Side Diff: tests/compiler/dart2js/kernel/closed_world_test.dart

Issue 2859133003: Find native classes with mixins in NativeClassFinder (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
« no previous file with comments | « tests/compiler/dart2js/kernel/closed_world2_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 // Tests that the closed world computed from [WorldImpact]s derived from kernel 5 // Tests that the closed world computed from [WorldImpact]s derived from kernel
6 // is equivalent to the original computed from resolution. 6 // is equivalent to the original computed from resolution.
7 library dart2js.kernel.closed_world_test; 7 library dart2js.kernel.closed_world_test;
8 8
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 compiler.elementEnvironment, compiler.commonElements), 148 compiler.elementEnvironment, compiler.commonElements),
149 backendUsageBuilder, 149 backendUsageBuilder,
150 backend.rtiNeedBuilder, 150 backend.rtiNeedBuilder,
151 backend.mirrorsDataBuilder, 151 backend.mirrorsDataBuilder,
152 backend.noSuchMethodRegistry, 152 backend.noSuchMethodRegistry,
153 backend.customElementsResolutionAnalysis, 153 backend.customElementsResolutionAnalysis,
154 backend.lookupMapResolutionAnalysis, 154 backend.lookupMapResolutionAnalysis,
155 backend.mirrorsResolutionAnalysis, 155 backend.mirrorsResolutionAnalysis,
156 new TypeVariableResolutionAnalysis( 156 new TypeVariableResolutionAnalysis(
157 compiler.elementEnvironment, backend.impacts, backendUsageBuilder), 157 compiler.elementEnvironment, backend.impacts, backendUsageBuilder),
158 backend.nativeResolutionEnqueuer, 158 backend.nativeResolutionEnqueuerForTesting,
159 compiler.deferredLoadTask, 159 compiler.deferredLoadTask,
160 backend.kernelTask); 160 backend.kernelTask);
161 return [listener, backendUsageBuilder]; 161 return [listener, backendUsageBuilder];
162 } 162 }
163 163
164 ClosedWorld computeClosedWorld(DiagnosticReporter reporter, 164 ClosedWorld computeClosedWorld(DiagnosticReporter reporter,
165 ResolutionEnqueuer enqueuer, ElementEnvironment elementEnvironment) { 165 ResolutionEnqueuer enqueuer, ElementEnvironment elementEnvironment) {
166 enqueuer.open(const ImpactStrategy(), elementEnvironment.mainFunction, 166 enqueuer.open(const ImpactStrategy(), elementEnvironment.mainFunction,
167 elementEnvironment.libraries); 167 elementEnvironment.libraries);
168 enqueuer.forEach((WorkItem work) { 168 enqueuer.forEach((WorkItem work) {
(...skipping 20 matching lines...) Expand all
189 final MemberElement element; 189 final MemberElement element;
190 190
191 KernelWorkItem(this._compiler, this._impactTransformer, this.element); 191 KernelWorkItem(this._compiler, this._impactTransformer, this.element);
192 192
193 @override 193 @override
194 WorldImpact run() { 194 WorldImpact run() {
195 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst); 195 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst);
196 return _impactTransformer.transformResolutionImpact(resolutionImpact); 196 return _impactTransformer.transformResolutionImpact(resolutionImpact);
197 } 197 }
198 } 198 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/kernel/closed_world2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698