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

Side by Side Diff: pkg/compiler/lib/src/ssa/value_set.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/value_range_analyzer.dart ('k') | pkg/compiler/lib/src/ssa/variable_allocator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698