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

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

Issue 716823002: Set up a stub pipline for using the new cps-based ir to generate js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move IrEnabled to compiler Created 6 years, 1 month 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/ssa.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 3b7f3dc312c674a86e8e61218a977153f8980484..c89a8ce7a94cb9abe3fe5176d11fdcaa3692edac 100644
--- a/pkg/compiler/lib/src/ssa/value_range_analyzer.dart
+++ b/pkg/compiler/lib/src/ssa/value_range_analyzer.dart
@@ -595,11 +595,15 @@ class SsaValueRangeAnalyzer extends HBaseVisitor implements OptimizationPhase {
final Compiler compiler;
final ConstantSystem constantSystem;
final ValueRangeInfo info;
+ final SsaOptimizerTask optimizer;
CodegenWorkItem work;
HGraph graph;
- SsaValueRangeAnalyzer(this.compiler, constantSystem, this.work)
+ SsaValueRangeAnalyzer(this.compiler,
+ constantSystem,
+ this.optimizer,
+ this.work)
: info = new ValueRangeInfo(constantSystem),
this.constantSystem = constantSystem;
@@ -610,14 +614,13 @@ class SsaValueRangeAnalyzer extends HBaseVisitor implements OptimizationPhase {
// that the graph does not get polluted with these instructions
// only necessary for this phase.
removeRangeConversion();
- JavaScriptBackend backend = compiler.backend;
// TODO(herhut): Find a cleaner way to pass around ranges.
- backend.optimizer.ranges = ranges;
+ optimizer.ranges = ranges;
}
void removeRangeConversion() {
conversions.forEach((HRangeConversion instruction) {
- instruction.block.rewrite(instruction, instruction.inputs[0]);;
+ instruction.block.rewrite(instruction, instruction.inputs[0]);
instruction.block.remove(instruction);
});
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | pkg/compiler/lib/src/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698