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

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

Issue 2668233002: Remove code supporting incremental compilation in dart2js (Closed)
Patch Set: Created 3 years, 10 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 | « pkg/compiler/lib/src/use_unused_api.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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 JavaScriptBackend backend = compiler.backend; 85 JavaScriptBackend backend = compiler.backend;
86 // Create a new resolution enqueuer and feed it with the [WorldImpact]s 86 // Create a new resolution enqueuer and feed it with the [WorldImpact]s
87 // computed from kernel through the [build] in `kernel_impact.dart`. 87 // computed from kernel through the [build] in `kernel_impact.dart`.
88 ResolutionEnqueuer enqueuer = new ResolutionEnqueuer( 88 ResolutionEnqueuer enqueuer = new ResolutionEnqueuer(
89 compiler.enqueuer, 89 compiler.enqueuer,
90 compiler.options, 90 compiler.options,
91 compiler.resolution, 91 compiler.resolution,
92 const TreeShakingEnqueuerStrategy(), 92 const TreeShakingEnqueuerStrategy(),
93 compiler.globalDependencies, 93 compiler.globalDependencies,
94 backend, 94 backend,
95 compiler.cacheStrategy,
96 'enqueuer from kernel'); 95 'enqueuer from kernel');
97 // TODO(johnniwinther): Store backend info separately. This replacement is 96 // TODO(johnniwinther): Store backend info separately. This replacement is
98 // made to reset a field in [TypeVariableHandler] that prevents it from 97 // made to reset a field in [TypeVariableHandler] that prevents it from
99 // enqueuing twice. 98 // enqueuing twice.
100 backend.typeVariableHandler = new TypeVariableHandler(compiler); 99 backend.typeVariableHandler = new TypeVariableHandler(compiler);
101 100
102 if (compiler.deferredLoadTask.isProgramSplit) { 101 if (compiler.deferredLoadTask.isProgramSplit) {
103 enqueuer.applyImpact(backend.computeDeferredLoadingImpact()); 102 enqueuer.applyImpact(backend.computeDeferredLoadingImpact());
104 } 103 }
105 enqueuer.applyImpact(backend.computeHelpersImpact()); 104 enqueuer.applyImpact(backend.computeHelpersImpact());
(...skipping 28 matching lines...) Expand all
134 // The class cannot itself be instantiated. 133 // The class cannot itself be instantiated.
135 return false; 134 return false;
136 } 135 }
137 return true; 136 return true;
138 }, verbose: arguments.verbose); 137 }, verbose: arguments.verbose);
139 checkClosedWorlds( 138 checkClosedWorlds(
140 compiler.resolutionWorldBuilder.closedWorldForTesting, closedWorld, 139 compiler.resolutionWorldBuilder.closedWorldForTesting, closedWorld,
141 verbose: arguments.verbose); 140 verbose: arguments.verbose);
142 }); 141 });
143 } 142 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/use_unused_api.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698