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

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

Issue 2813093002: Remove BackendClasses and JavaScriptBackendClasses. (Closed)
Patch Set: . 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) 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/closure.dart'; 10 import 'package:compiler/src/closure.dart';
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 }); 144 });
145 } 145 }
146 146
147 EnqueuerListener createResolutionEnqueuerListener(Compiler compiler) { 147 EnqueuerListener createResolutionEnqueuerListener(Compiler compiler) {
148 JavaScriptBackend backend = compiler.backend; 148 JavaScriptBackend backend = compiler.backend;
149 return new ResolutionEnqueuerListener( 149 return new ResolutionEnqueuerListener(
150 compiler.options, 150 compiler.options,
151 compiler.elementEnvironment, 151 compiler.elementEnvironment,
152 compiler.commonElements, 152 compiler.commonElements,
153 backend.impacts, 153 backend.impacts,
154 backend.backendClasses,
155 backend.nativeBasicData, 154 backend.nativeBasicData,
156 backend.interceptorDataBuilder, 155 backend.interceptorDataBuilder,
157 backend.backendUsageBuilder, 156 backend.backendUsageBuilder,
158 backend.rtiNeedBuilder, 157 backend.rtiNeedBuilder,
159 backend.mirrorsDataBuilder, 158 backend.mirrorsDataBuilder,
160 backend.noSuchMethodRegistry, 159 backend.noSuchMethodRegistry,
161 backend.customElementsResolutionAnalysis, 160 backend.customElementsResolutionAnalysis,
162 backend.lookupMapResolutionAnalysis, 161 backend.lookupMapResolutionAnalysis,
163 backend.mirrorsResolutionAnalysis, 162 backend.mirrorsResolutionAnalysis,
164 new TypeVariableResolutionAnalysis(compiler.elementEnvironment, 163 new TypeVariableResolutionAnalysis(compiler.elementEnvironment,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 final MemberElement element; 195 final MemberElement element;
197 196
198 KernelWorkItem(this._compiler, this._impactTransformer, this.element); 197 KernelWorkItem(this._compiler, this._impactTransformer, this.element);
199 198
200 @override 199 @override
201 WorldImpact run() { 200 WorldImpact run() {
202 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst); 201 ResolutionImpact resolutionImpact = build(_compiler, element.resolvedAst);
203 return _impactTransformer.transformResolutionImpact(resolutionImpact); 202 return _impactTransformer.transformResolutionImpact(resolutionImpact);
204 } 203 }
205 } 204 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/kernel/closed_world2_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_final_field2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698