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

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

Issue 2829033002: Rename KernelWorldBuilder to KernelElementBuilder (Closed)
Patch Set: Rename to KernelToElementMap 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 library dart2js.kernel.impact_test; 5 library dart2js.kernel.impact_test;
6 6
7 import 'package:async_helper/async_helper.dart'; 7 import 'package:async_helper/async_helper.dart';
8 import 'package:compiler/src/commandline_options.dart'; 8 import 'package:compiler/src/commandline_options.dart';
9 import 'package:compiler/src/common.dart'; 9 import 'package:compiler/src/common.dart';
10 import 'package:compiler/src/common/names.dart'; 10 import 'package:compiler/src/common/names.dart';
11 import 'package:compiler/src/common/resolution.dart'; 11 import 'package:compiler/src/common/resolution.dart';
12 import 'package:compiler/src/compiler.dart'; 12 import 'package:compiler/src/compiler.dart';
13 import 'package:compiler/src/constants/expressions.dart'; 13 import 'package:compiler/src/constants/expressions.dart';
14 import 'package:compiler/src/elements/elements.dart'; 14 import 'package:compiler/src/elements/elements.dart';
15 import 'package:compiler/src/elements/resolution_types.dart'; 15 import 'package:compiler/src/elements/resolution_types.dart';
16 import 'package:compiler/src/js_backend/backend.dart'; 16 import 'package:compiler/src/js_backend/backend.dart';
17 import 'package:compiler/src/kernel/element_adapter.dart'; 17 import 'package:compiler/src/kernel/element_adapter.dart';
18 import 'package:compiler/src/kernel/world_builder.dart'; 18 import 'package:compiler/src/kernel/element_map.dart';
19 import 'package:compiler/src/resolution/registry.dart'; 19 import 'package:compiler/src/resolution/registry.dart';
20 import 'package:compiler/src/resolution/tree_elements.dart'; 20 import 'package:compiler/src/resolution/tree_elements.dart';
21 import 'package:compiler/src/ssa/kernel_impact.dart'; 21 import 'package:compiler/src/ssa/kernel_impact.dart';
22 import 'package:compiler/src/serialization/equivalence.dart'; 22 import 'package:compiler/src/serialization/equivalence.dart';
23 import 'package:compiler/src/universe/call_structure.dart'; 23 import 'package:compiler/src/universe/call_structure.dart';
24 import 'package:compiler/src/universe/feature.dart'; 24 import 'package:compiler/src/universe/feature.dart';
25 import 'package:compiler/src/universe/use.dart'; 25 import 'package:compiler/src/universe/use.dart';
26 import 'package:expect/expect.dart'; 26 import 'package:expect/expect.dart';
27 import 'package:kernel/ast.dart' as ir; 27 import 'package:kernel/ast.dart' as ir;
28 import '../memory_compiler.dart'; 28 import '../memory_compiler.dart';
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 memorySourceFiles: SOURCE, 687 memorySourceFiles: SOURCE,
688 options: [ 688 options: [
689 fullTest ? Flags.analyzeAll : Flags.analyzeOnly, 689 fullTest ? Flags.analyzeAll : Flags.analyzeOnly,
690 Flags.useKernel, 690 Flags.useKernel,
691 Flags.enableAssertMessage 691 Flags.enableAssertMessage
692 ]); 692 ]);
693 compiler.resolution.retainCachesForTesting = true; 693 compiler.resolution.retainCachesForTesting = true;
694 Expect.isTrue(await compiler.run(entryPoint)); 694 Expect.isTrue(await compiler.run(entryPoint));
695 JavaScriptBackend backend = compiler.backend; 695 JavaScriptBackend backend = compiler.backend;
696 KernelElementAdapter kernelElementAdapter = 696 KernelElementAdapter kernelElementAdapter =
697 new KernelWorldBuilder(compiler.reporter, backend.kernelTask.program); 697 new KernelToElementMap(compiler.reporter, backend.kernelTask.program);
698 698
699 checkLibrary(compiler, kernelElementAdapter, compiler.mainApp, 699 checkLibrary(compiler, kernelElementAdapter, compiler.mainApp,
700 fullTest: fullTest); 700 fullTest: fullTest);
701 compiler.libraryLoader.libraries.forEach((LibraryElement library) { 701 compiler.libraryLoader.libraries.forEach((LibraryElement library) {
702 if (library == compiler.mainApp) return; 702 if (library == compiler.mainApp) return;
703 checkLibrary(compiler, kernelElementAdapter, library, fullTest: fullTest); 703 checkLibrary(compiler, kernelElementAdapter, library, fullTest: fullTest);
704 }); 704 });
705 }); 705 });
706 } 706 }
707 707
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 visitList(type.optionalParameterTypes), 890 visitList(type.optionalParameterTypes),
891 type.namedParameters, 891 type.namedParameters,
892 visitList(type.namedParameterTypes)); 892 visitList(type.namedParameterTypes));
893 } 893 }
894 } 894 }
895 895
896 /// Perform unaliasing of all typedefs nested within a [ResolutionDartType]. 896 /// Perform unaliasing of all typedefs nested within a [ResolutionDartType].
897 ResolutionDartType unalias(ResolutionDartType type) { 897 ResolutionDartType unalias(ResolutionDartType type) {
898 return const Unaliaser().visit(type); 898 return const Unaliaser().visit(type);
899 } 899 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/kernel/closed_world2_test.dart ('k') | tests/compiler/dart2js/serialization/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698