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

Issue 660321: Implementation of a fixed-size bit vector.... (Closed)

Created:
10 years, 9 months ago by fschneider
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implementation of a fixed-size bit vector. This is a basic implementation bit vector containing an fixed arbitrary number of bits. Committed: http://code.google.com/p/v8/source/detail?r=3991

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : Fixed stupid bug. #

Total comments: 15

Patch Set 4 : Addressed comments #

Total comments: 6

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -0 lines) Patch
M src/data-flow.h View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
M test/cctest/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/test-dataflow.cc View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
fschneider
We may need this for liveness analysis and possibly for other data flow passes as ...
10 years, 9 months ago (2010-03-01 23:09:11 UTC) #1
Kevin Millikin (Chromium)
Initial round of comments. http://codereview.chromium.org/660321/diff/9/1011 File src/data-flow.h (right): http://codereview.chromium.org/660321/diff/9/1011#newcode49 src/data-flow.h:49: // Copy constructor copies the ...
10 years, 9 months ago (2010-03-02 09:24:28 UTC) #2
fschneider
http://codereview.chromium.org/660321/diff/9/1011 File src/data-flow.h (right): http://codereview.chromium.org/660321/diff/9/1011#newcode49 src/data-flow.h:49: // Copy constructor copies the backing vector. On 2010/03/02 ...
10 years, 9 months ago (2010-03-02 10:14:19 UTC) #3
fschneider
http://codereview.chromium.org/660321/diff/9/1011 File src/data-flow.h (right): http://codereview.chromium.org/660321/diff/9/1011#newcode77 src/data-flow.h:77: BitVector Union(BitVector other) { On 2010/03/02 10:14:23, fschneider wrote: ...
10 years, 9 months ago (2010-03-02 10:16:13 UTC) #4
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/660321/diff/1017/13 File src/data-flow.h (right): http://codereview.chromium.org/660321/diff/1017/13#newcode61 src/data-flow.h:61: return (block & (1U << (i % 32))) ...
10 years, 9 months ago (2010-03-02 10:24:11 UTC) #5
fschneider
10 years, 9 months ago (2010-03-02 10:40:42 UTC) #6
http://codereview.chromium.org/660321/diff/1017/13
File src/data-flow.h (right):

http://codereview.chromium.org/660321/diff/1017/13#newcode61
src/data-flow.h:61: return (block & (1U << (i % 32))) ? 1 : 0;
On 2010/03/02 10:24:11, Kevin Millikin wrote:
> return (block & (1U << (i % 32))) != 0;

Done.

http://codereview.chromium.org/660321/diff/1017/13#newcode66
src/data-flow.h:66: uint32_t block = bits_[i / 32];
On 2010/03/02 10:24:11, Kevin Millikin wrote:
> It probably doesn't make a difference, but you can simply write:
> 
> bits_[i / 32] |= (1U << (i % 32));

Done.

http://codereview.chromium.org/660321/diff/1017/13#newcode81
src/data-flow.h:81: bits_[i] = bits_[i] | other.bits_[i];
On 2010/03/02 10:24:11, Kevin Millikin wrote:
> bits_[i] |= other.bits_[i] ?

Done.

Powered by Google App Engine
This is Rietveld 408576698