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

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

Issue 2575083002: Pass ClosedWorld directly to codegen tasks (Closed)
Patch Set: Updated cf. comment. Created 4 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/ssa/types_propagation.dart ('k') | pkg/compiler/lib/src/tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/value_range_analyzer.dart
diff --git a/pkg/compiler/lib/src/ssa/value_range_analyzer.dart b/pkg/compiler/lib/src/ssa/value_range_analyzer.dart
index 67e861eb2d8eb7015107c12c98e5a0ab5f50bb08..2db8ae5b4328e64e2eeffa4c2064c6d4377b79f8 100644
--- a/pkg/compiler/lib/src/ssa/value_range_analyzer.dart
+++ b/pkg/compiler/lib/src/ssa/value_range_analyzer.dart
@@ -602,18 +602,18 @@ class SsaValueRangeAnalyzer extends HBaseVisitor implements OptimizationPhase {
final Map<HInstruction, Range> ranges = new Map<HInstruction, Range>();
final Compiler compiler;
+ final ClosedWorld closedWorld;
final ConstantSystem constantSystem;
final ValueRangeInfo info;
final SsaOptimizerTask optimizer;
HGraph graph;
- SsaValueRangeAnalyzer(this.compiler, constantSystem, this.optimizer)
+ SsaValueRangeAnalyzer(
+ this.compiler, this.closedWorld, constantSystem, this.optimizer)
: info = new ValueRangeInfo(constantSystem),
this.constantSystem = constantSystem;
- ClosedWorld get closedWorld => compiler.closedWorld;
-
void visitGraph(HGraph graph) {
this.graph = graph;
visitDominatorTree(graph);
« no previous file with comments | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | pkg/compiler/lib/src/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698