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

Side by Side Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 808553004: Revert "cps-ir: Add support for intercepted calls." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart_backend; 5 part of dart_backend;
6 6
7 // TODO(ahe): This class is simply wrong. This backend should use 7 // TODO(ahe): This class is simply wrong. This backend should use
8 // elements when it can, not AST nodes. Perhaps a [Map<Element, 8 // elements when it can, not AST nodes. Perhaps a [Map<Element,
9 // TreeElements>] is what is needed. 9 // TreeElements>] is what is needed.
10 class ElementAst { 10 class ElementAst {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 new RedundantPhiEliminator().rewrite(cpsDefinition); 154 new RedundantPhiEliminator().rewrite(cpsDefinition);
155 traceGraph("Redundant phi elimination", cpsDefinition); 155 traceGraph("Redundant phi elimination", cpsDefinition);
156 new ShrinkingReducer().rewrite(cpsDefinition); 156 new ShrinkingReducer().rewrite(cpsDefinition);
157 traceGraph("Shrinking reductions", cpsDefinition); 157 traceGraph("Shrinking reductions", cpsDefinition);
158 158
159 // Do not rewrite the IR after variable allocation. Allocation 159 // Do not rewrite the IR after variable allocation. Allocation
160 // makes decisions based on an approximation of IR variable live 160 // makes decisions based on an approximation of IR variable live
161 // ranges that can be invalidated by transforming the IR. 161 // ranges that can be invalidated by transforming the IR.
162 new cps_ir.RegisterAllocator().visit(cpsDefinition); 162 new cps_ir.RegisterAllocator().visit(cpsDefinition);
163 163
164 tree_builder.Builder builder = 164 tree_builder.Builder builder = new tree_builder.Builder(compiler);
165 new tree_builder.Builder(new Glue(compiler), compiler);
166 tree_ir.ExecutableDefinition treeDefinition = builder.build(cpsDefinition); 165 tree_ir.ExecutableDefinition treeDefinition = builder.build(cpsDefinition);
167 assert(treeDefinition != null); 166 assert(treeDefinition != null);
168 traceGraph('Tree builder', treeDefinition); 167 traceGraph('Tree builder', treeDefinition);
169 168
170 // Transformations on the Tree IR. 169 // Transformations on the Tree IR.
171 new StatementRewriter().rewrite(treeDefinition); 170 new StatementRewriter().rewrite(treeDefinition);
172 traceGraph('Statement rewriter', treeDefinition); 171 traceGraph('Statement rewriter', treeDefinition);
173 new CopyPropagator().rewrite(treeDefinition); 172 new CopyPropagator().rewrite(treeDefinition);
174 traceGraph('Copy propagation', treeDefinition); 173 traceGraph('Copy propagation', treeDefinition);
175 new LoopRewriter().rewrite(treeDefinition); 174 new LoopRewriter().rewrite(treeDefinition);
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 519 }
521 520
522 ConstantExpression compileMetadata(MetadataAnnotation metadata, 521 ConstantExpression compileMetadata(MetadataAnnotation metadata,
523 Node node, 522 Node node,
524 TreeElements elements) { 523 TreeElements elements) {
525 return measure(() { 524 return measure(() {
526 return constantCompiler.compileMetadata(metadata, node, elements); 525 return constantCompiler.compileMetadata(metadata, node, elements);
527 }); 526 });
528 } 527 }
529 } 528 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698