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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/value_set.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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
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);

Powered by Google App Engine
This is Rietveld 408576698