| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of ssa; |
| 6 |
| 5 class ValueSet { | 7 class ValueSet { |
| 6 int size = 0; | 8 int size = 0; |
| 7 List<HInstruction> table; | 9 List<HInstruction> table; |
| 8 ValueSetNode collisions; | 10 ValueSetNode collisions; |
| 9 ValueSet() : table = new List<HInstruction>(8); | 11 ValueSet() : table = new List<HInstruction>(8); |
| 10 | 12 |
| 11 bool get isEmpty => size == 0; | 13 bool get isEmpty => size == 0; |
| 12 int get length => size; | 14 int get length => size; |
| 13 | 15 |
| 14 void add(HInstruction instruction) { | 16 void add(HInstruction instruction) { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } | 148 } |
| 147 } | 149 } |
| 148 | 150 |
| 149 class ValueSetNode { | 151 class ValueSetNode { |
| 150 final HInstruction value; | 152 final HInstruction value; |
| 151 final int hash; | 153 final int hash; |
| 152 int get hashCode => hash; | 154 int get hashCode => hash; |
| 153 ValueSetNode next; | 155 ValueSetNode next; |
| 154 ValueSetNode(this.value, this.hash, this.next); | 156 ValueSetNode(this.value, this.hash, this.next); |
| 155 } | 157 } |
| OLD | NEW |