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