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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 792643003: Add DartTypes to abstract Types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/dart_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 060d48daa3738e6907c5011a1f6204039712e162..2c8dd77094ee5ea6cf53a99b677e6bcc1d984c5e 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -130,7 +130,8 @@ class DartBackend extends Backend {
void codegen(CodegenWorkItem work) { }
/// Create an [ElementAst] from the CPS IR.
- static ElementAst createElementAst(Compiler compiler,
+ static ElementAst createElementAst(
+ Compiler compiler,
Tracer tracer,
ConstantSystem constantSystem,
Element element,
@@ -148,7 +149,7 @@ class DartBackend extends Backend {
// TODO(karlklose): enable type propagation for dart2dart when constant
// types are correctly marked as instantiated (Issue 21880).
- new TypePropagator(compiler, constantSystem, new UnitTypeSystem(),
+ new TypePropagator(compiler.types, constantSystem, new UnitTypeSystem(),
compiler.internalError).rewrite(cpsDefinition);
traceGraph("Sparse constant propagation", cpsDefinition);
new RedundantPhiEliminator().rewrite(cpsDefinition);
@@ -161,8 +162,8 @@ class DartBackend extends Backend {
// ranges that can be invalidated by transforming the IR.
new cps_ir.RegisterAllocator().visit(cpsDefinition);
- tree_builder.Builder builder =
- new tree_builder.Builder(new Glue(compiler), compiler);
+ tree_builder.Builder builder = new tree_builder.Builder(
+ new Glue(compiler), compiler.internalError, compiler.identicalFunction);
tree_ir.ExecutableDefinition treeDefinition = builder.build(cpsDefinition);
assert(treeDefinition != null);
traceGraph('Tree builder', treeDefinition);
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/dart_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698