| 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; | 5 import '../universe/side_effects.dart' show SideEffects; |
| 6 |
| 7 import 'nodes.dart'; |
| 8 |
| 6 | 9 |
| 7 class ValueSet { | 10 class ValueSet { |
| 8 int size = 0; | 11 int size = 0; |
| 9 List<HInstruction> table; | 12 List<HInstruction> table; |
| 10 ValueSetNode collisions; | 13 ValueSetNode collisions; |
| 11 ValueSet() : table = new List<HInstruction>(8); | 14 ValueSet() : table = new List<HInstruction>(8); |
| 12 | 15 |
| 13 bool get isEmpty => size == 0; | 16 bool get isEmpty => size == 0; |
| 14 int get length => size; | 17 int get length => size; |
| 15 | 18 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 151 } |
| 149 } | 152 } |
| 150 | 153 |
| 151 class ValueSetNode { | 154 class ValueSetNode { |
| 152 final HInstruction value; | 155 final HInstruction value; |
| 153 final int hash; | 156 final int hash; |
| 154 int get hashCode => hash; | 157 int get hashCode => hash; |
| 155 ValueSetNode next; | 158 ValueSetNode next; |
| 156 ValueSetNode(this.value, this.hash, this.next); | 159 ValueSetNode(this.value, this.hash, this.next); |
| 157 } | 160 } |
| OLD | NEW |