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

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

Issue 1655183002: dart2js cps: Remove interceptors in cases where type propagation fails. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove debugging code & rebase Created 4 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
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 void optimizeCpsAfterInlining(cps.FunctionDefinition cpsFunction) { 267 void optimizeCpsAfterInlining(cps.FunctionDefinition cpsFunction) {
268 cpsOptimizationTask.measure(() { 268 cpsOptimizationTask.measure(() {
269 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 269 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
270 applyCpsPass(new ShrinkingReducer(), cpsFunction); 270 applyCpsPass(new ShrinkingReducer(), cpsFunction);
271 applyCpsPass(new RedundantRefinementEliminator(typeSystem), cpsFunction); 271 applyCpsPass(new RedundantRefinementEliminator(typeSystem), cpsFunction);
272 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); 272 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
273 applyCpsPass(new TypePropagator(this, recomputeAll: true), cpsFunction); 273 applyCpsPass(new TypePropagator(this, recomputeAll: true), cpsFunction);
274 applyCpsPass(new ShrinkingReducer(), cpsFunction); 274 applyCpsPass(new ShrinkingReducer(), cpsFunction);
275 applyCpsPass(new EagerlyLoadStatics(), cpsFunction); 275 applyCpsPass(new EagerlyLoadStatics(), cpsFunction);
276 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction); 276 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction);
277 applyCpsPass(new DuplicateBranchEliminator(), cpsFunction); 277 applyCpsPass(new PathBasedOptimizer(backend, typeSystem), cpsFunction);
278 applyCpsPass(new ShrinkingReducer(), cpsFunction); 278 applyCpsPass(new ShrinkingReducer(), cpsFunction);
279 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); 279 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
280 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); 280 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction);
281 applyCpsPass(new LoopInvariantBranchMotion(), cpsFunction); 281 applyCpsPass(new LoopInvariantBranchMotion(), cpsFunction);
282 applyCpsPass(new ShrinkingReducer(), cpsFunction); 282 applyCpsPass(new ShrinkingReducer(), cpsFunction);
283 applyCpsPass(new ScalarReplacer(compiler), cpsFunction); 283 applyCpsPass(new ScalarReplacer(compiler), cpsFunction);
284 applyCpsPass(new MutableVariableEliminator(), cpsFunction); 284 applyCpsPass(new MutableVariableEliminator(), cpsFunction);
285 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 285 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
286 applyCpsPass(new RedundantPhiEliminator(), cpsFunction); 286 applyCpsPass(new RedundantPhiEliminator(), cpsFunction);
287 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); 287 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 treeOptimizationTask] 351 treeOptimizationTask]
352 ..addAll(fallbackCompiler.tasks); 352 ..addAll(fallbackCompiler.tasks);
353 } 353 }
354 354
355 js.Node attachPosition(js.Node node, AstElement element) { 355 js.Node attachPosition(js.Node node, AstElement element) {
356 return node.withSourceInformation( 356 return node.withSourceInformation(
357 sourceInformationFactory.createBuilderForContext(element) 357 sourceInformationFactory.createBuilderForContext(element)
358 .buildDeclaration(element)); 358 .buildDeclaration(element));
359 } 359 }
360 } 360 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/types/abstract_value_domain.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698