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

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

Issue 1571433002: dart2js cps: Compute intercepted classes in optimize_interceptors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments 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
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 applyCpsPass(new EagerlyLoadStatics(), cpsFunction); 223 applyCpsPass(new EagerlyLoadStatics(), cpsFunction);
224 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction); 224 applyCpsPass(new GVN(compiler, typeSystem), cpsFunction);
225 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); 225 applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction);
226 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); 226 applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction);
227 applyCpsPass(new ShrinkingReducer(), cpsFunction); 227 applyCpsPass(new ShrinkingReducer(), cpsFunction);
228 applyCpsPass(new ScalarReplacer(compiler), cpsFunction); 228 applyCpsPass(new ScalarReplacer(compiler), cpsFunction);
229 applyCpsPass(new MutableVariableEliminator(), cpsFunction); 229 applyCpsPass(new MutableVariableEliminator(), cpsFunction);
230 applyCpsPass(new RedundantJoinEliminator(), cpsFunction); 230 applyCpsPass(new RedundantJoinEliminator(), cpsFunction);
231 applyCpsPass(new RedundantPhiEliminator(), cpsFunction); 231 applyCpsPass(new RedundantPhiEliminator(), cpsFunction);
232 applyCpsPass(new ShrinkingReducer(), cpsFunction); 232 applyCpsPass(new ShrinkingReducer(), cpsFunction);
233 applyCpsPass(new OptimizeInterceptors(backend), cpsFunction); 233 applyCpsPass(new OptimizeInterceptors(backend, typeSystem), cpsFunction);
234 applyCpsPass(new BackwardNullCheckRemover(typeSystem), cpsFunction); 234 applyCpsPass(new BackwardNullCheckRemover(typeSystem), cpsFunction);
235 applyCpsPass(new ShrinkingReducer(), cpsFunction); 235 applyCpsPass(new ShrinkingReducer(), cpsFunction);
236 }); 236 });
237 } 237 }
238 238
239 tree_ir.FunctionDefinition compileToTreeIr(cps.FunctionDefinition cpsNode) { 239 tree_ir.FunctionDefinition compileToTreeIr(cps.FunctionDefinition cpsNode) {
240 applyCpsPass(new Finalize(backend), cpsNode); 240 applyCpsPass(new Finalize(backend), cpsNode);
241 tree_builder.Builder builder = new tree_builder.Builder( 241 tree_builder.Builder builder = new tree_builder.Builder(
242 reporter.internalError); 242 reporter.internalError);
243 tree_ir.FunctionDefinition treeNode = 243 tree_ir.FunctionDefinition treeNode =
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 treeOptimizationTask] 295 treeOptimizationTask]
296 ..addAll(fallbackCompiler.tasks); 296 ..addAll(fallbackCompiler.tasks);
297 } 297 }
298 298
299 js.Node attachPosition(js.Node node, AstElement element) { 299 js.Node attachPosition(js.Node node, AstElement element) {
300 return node.withSourceInformation( 300 return node.withSourceInformation(
301 sourceInformationFactory.createBuilderForContext(element) 301 sourceInformationFactory.createBuilderForContext(element)
302 .buildDeclaration(element)); 302 .buildDeclaration(element));
303 } 303 }
304 } 304 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/unsugar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698