| Index: sdk/lib/_internal/compiler/implementation/ssa/codegen_helpers.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/codegen_helpers.dart (revision 23841)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/codegen_helpers.dart (working copy)
|
| @@ -15,6 +15,7 @@
|
| * t2 = add(4, 3);
|
| */
|
| class SsaInstructionMerger extends HBaseVisitor {
|
| + final Compiler compiler;
|
| /**
|
| * List of [HInstruction] that the instruction merger expects in
|
| * order when visiting the inputs of an instruction.
|
| @@ -33,7 +34,7 @@
|
| generateAtUseSite.add(instruction);
|
| }
|
|
|
| - SsaInstructionMerger(this.generateAtUseSite);
|
| + SsaInstructionMerger(this.generateAtUseSite, this.compiler);
|
|
|
| void visitGraph(HGraph graph) {
|
| visitDominatorTree(graph);
|
| @@ -104,7 +105,7 @@
|
| void visitIdentity(HIdentity instruction) {
|
| HInstruction left = instruction.left;
|
| HInstruction right = instruction.right;
|
| - if (singleIdentityComparison(left, right) != null) {
|
| + if (singleIdentityComparison(left, right, compiler) != null) {
|
| super.visitIdentity(instruction);
|
| }
|
| // Do nothing.
|
|
|