Index: sdk/lib/_internal/compiler/implementation/ssa/value_set.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/value_set.dart b/sdk/lib/_internal/compiler/implementation/ssa/value_set.dart |
index b68e688763f0cb47faf37f249664913b5003a409..d565de77ebd143750ce61d9d0e15ff5a3ac62b11 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/value_set.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/value_set.dart |
@@ -8,7 +8,7 @@ class ValueSet { |
int size = 0; |
List<HInstruction> table; |
ValueSetNode collisions; |
- ValueSet() : table = new List<HInstruction>(8); |
+ ValueSet() : table = new List<HInstruction>.fixedLength(8); |
bool get isEmpty => size == 0; |
int get length => size; |
@@ -137,7 +137,7 @@ class ValueSet { |
// Reset the table with a bigger capacity. |
assert(capacity > table.length); |
size = 0; |
- table = new List<HInstruction>(capacity); |
+ table = new List<HInstruction>.fixedLength(capacity); |
collisions = null; |
// Add the old instructions to the new table. |
copyTo(this, oldTable, oldCollisions); |