Index: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart |
index 745f48926c2d9f742d7722a811cef8925a63d26b..fdea2577661d4b4dbd09f4ebf834800e92d4b12f 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/nodes.dart |
@@ -659,7 +659,7 @@ class HBasicBlock extends HInstructionList { |
if (index == dominatedBlocks.length) { |
dominatedBlocks.add(block); |
} else { |
- dominatedBlocks.insertRange(index, 1, block); |
+ dominatedBlocks.insert(index, block); |
} |
assert(block.dominator == null); |
block.dominator = this; |
@@ -673,7 +673,7 @@ class HBasicBlock extends HInstructionList { |
if (index == dominatedBlocks.length - 1) { |
dominatedBlocks.removeLast(); |
} else { |
- dominatedBlocks.removeRange(index, 1); |
+ dominatedBlocks.removeRange(index, index + 1); |
} |
assert(identical(block.dominator, this)); |
block.dominator = null; |