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

Side by Side Diff: runtime/vm/bit_vector.h

Issue 12827027: Revert "Compute local variable liveness before translation to SSA." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/bit_vector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef VM_BIT_VECTOR_H_ 5 #ifndef VM_BIT_VECTOR_H_
6 #define VM_BIT_VECTOR_H_ 6 #define VM_BIT_VECTOR_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/zone.h" 10 #include "vm/zone.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Add all elements that are in the bitvector from. 76 // Add all elements that are in the bitvector from.
77 bool AddAll(const BitVector* from); 77 bool AddAll(const BitVector* from);
78 78
79 // Remove all elements that are in the bitvector from. 79 // Remove all elements that are in the bitvector from.
80 bool RemoveAll(const BitVector* from); 80 bool RemoveAll(const BitVector* from);
81 81
82 // From the bitvector gen add those elements that are not in the 82 // From the bitvector gen add those elements that are not in the
83 // bitvector kill. 83 // bitvector kill.
84 bool KillAndAdd(BitVector* kill, BitVector* gen); 84 bool KillAndAdd(BitVector* kill, BitVector* gen);
85 85
86 void Intersect(const BitVector* other); 86 void Intersect(const BitVector& other);
87 87
88 bool Contains(int i) const { 88 bool Contains(int i) const {
89 ASSERT(i >= 0 && i < length()); 89 ASSERT(i >= 0 && i < length());
90 uword block = data_[i / kBitsPerWord]; 90 uword block = data_[i / kBitsPerWord];
91 return (block & (static_cast<uword>(1) << (i % kBitsPerWord))) != 0; 91 return (block & (static_cast<uword>(1) << (i % kBitsPerWord))) != 0;
92 } 92 }
93 93
94 void Clear() { 94 void Clear() {
95 for (intptr_t i = 0; i < data_length_; i++) { 95 for (intptr_t i = 0; i < data_length_; i++) {
96 data_[i] = 0; 96 data_[i] = 0;
(...skipping 14 matching lines...) Expand all
111 intptr_t length_; 111 intptr_t length_;
112 intptr_t data_length_; 112 intptr_t data_length_;
113 uword* data_; 113 uword* data_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(BitVector); 115 DISALLOW_COPY_AND_ASSIGN(BitVector);
116 }; 116 };
117 117
118 } // namespace dart 118 } // namespace dart
119 119
120 #endif // VM_BIT_VECTOR_H_ 120 #endif // VM_BIT_VECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/bit_vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698