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

Side by Side Diff: pkg/compiler/lib/src/js_backend/codegen/task.dart

Issue 1588723003: Revert "Do TypePropagation again after inlining" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/cps_ir/type_propagation.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Generate code using the cps-based IR pipeline. 5 /// Generate code using the cps-based IR pipeline.
6 library code_generator_task; 6 library code_generator_task;
7 7
8 import 'glue.dart'; 8 import 'glue.dart';
9 import 'codegen.dart'; 9 import 'codegen.dart';
10 import 'unsugar.dart'; 10 import 'unsugar.dart';
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 215 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
216 applyCpsPass(new ShrinkingReducer(), cpsFunction); 216 applyCpsPass(new ShrinkingReducer(), cpsFunction);
217 }); 217 });
218 } 218 }
219 219
220 void optimizeCpsAfterInlining(cps.FunctionDefinition cpsFunction) { 220 void optimizeCpsAfterInlining(cps.FunctionDefinition cpsFunction) {
221 cpsOptimizationTask.measure(() { 221 cpsOptimizationTask.measure(() {
222 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 222 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
223 applyCpsPass(new ShrinkingReducer(), cpsFunction); 223 applyCpsPass(new ShrinkingReducer(), cpsFunction);
224 applyCpsPass(new RedundantRefinementEliminator(typeSystem), cpsFunction); 224 applyCpsPass(new RedundantRefinementEliminator(typeSystem), cpsFunction);
225 applyCpsPass(new TypePropagator(this, recomputeAll: true), cpsFunction);
226 applyCpsPass(new EagerlyLoadStatics(), cpsFunction); 225 applyCpsPass(new EagerlyLoadStatics(), cpsFunction);
227 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction); 226 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction);
228 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); 227 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
229 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); 228 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction);
230 applyCpsPass(new LoopInvariantBranchMotion(), cpsFunction); 229 applyCpsPass(new LoopInvariantBranchMotion(), cpsFunction);
231 applyCpsPass(new ShrinkingReducer(), cpsFunction); 230 applyCpsPass(new ShrinkingReducer(), cpsFunction);
232 applyCpsPass(new ScalarReplacer(compiler), cpsFunction); 231 applyCpsPass(new ScalarReplacer(compiler), cpsFunction);
233 applyCpsPass(new MutableVariableEliminator(), cpsFunction); 232 applyCpsPass(new MutableVariableEliminator(), cpsFunction);
234 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 233 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
235 applyCpsPass(new RedundantPhiEliminator(), cpsFunction); 234 applyCpsPass(new RedundantPhiEliminator(), cpsFunction);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 treeOptimizationTask] 298 treeOptimizationTask]
300 ..addAll(fallbackCompiler.tasks); 299 ..addAll(fallbackCompiler.tasks);
301 } 300 }
302 301
303 js.Node attachPosition(js.Node node, AstElement element) { 302 js.Node attachPosition(js.Node node, AstElement element) {
304 return node.withSourceInformation( 303 return node.withSourceInformation(
305 sourceInformationFactory.createBuilderForContext(element) 304 sourceInformationFactory.createBuilderForContext(element)
306 .buildDeclaration(element)); 305 .buildDeclaration(element));
307 } 306 }
308 } 307 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698