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

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 2777163002: Make codegen and optimizations depend more directly on data objects. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/codegen_helpers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index 0338201f45f952a21d4628019f59bd7edbec750e..9aa818493c63fc7eaf314bef5aa7df2d118ae6de 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -318,17 +318,18 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
}
void preGenerateMethod(HGraph graph) {
- new SsaInstructionSelection(compiler, closedWorld).visitGraph(graph);
+ new SsaInstructionSelection(closedWorld, backend.interceptorData)
+ .visitGraph(graph);
new SsaTypeKnownRemover().visitGraph(graph);
- new SsaTrustedCheckRemover(compiler).visitGraph(graph);
- new SsaInstructionMerger(generateAtUseSite, compiler).visitGraph(graph);
+ new SsaTrustedCheckRemover(compiler.options).visitGraph(graph);
+ new SsaInstructionMerger(generateAtUseSite, backend).visitGraph(graph);
new SsaConditionMerger(generateAtUseSite, controlFlowOperators)
.visitGraph(graph);
- SsaLiveIntervalBuilder intervalBuilder = new SsaLiveIntervalBuilder(
- compiler, generateAtUseSite, controlFlowOperators);
+ SsaLiveIntervalBuilder intervalBuilder =
+ new SsaLiveIntervalBuilder(generateAtUseSite, controlFlowOperators);
intervalBuilder.visitGraph(graph);
SsaVariableAllocator allocator = new SsaVariableAllocator(
- compiler,
+ backend.namer,
intervalBuilder.liveInstructions,
intervalBuilder.liveIntervals,
generateAtUseSite);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/codegen_helpers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698