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

Issue 6065010: Remember required register kind when creating artificial virtual register. (Closed)

Created:
9 years, 11 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Remember required register kind when creating artificial virtual register. Committed: http://code.google.com/p/v8/source/detail?r=6138

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -5 lines) Patch
M src/data-flow.h View 1 chunk +5 lines, -2 lines 0 comments Download
M src/lithium-allocator.h View 3 chunks +37 lines, -0 lines 4 comments Download
M src/lithium-allocator.cc View 4 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 11 months ago (2011-01-03 16:08:17 UTC) #1
Kevin Millikin (Chromium)
9 years, 11 months ago (2011-01-03 16:44:46 UTC) #2
LGTM.  Small comments below.

http://codereview.chromium.org/6065010/diff/1/src/lithium-allocator.h
File src/lithium-allocator.h (right):

http://codereview.chromium.org/6065010/diff/1/src/lithium-allocator.h#newcode758
src/lithium-allocator.h:758: class FlexibleBitVector BASE_EMBEDDED {
Maybe GrowableBitVector is more descriptive?  It never shrinks, does it?

http://codereview.chromium.org/6065010/diff/1/src/lithium-allocator.h#newcode762
src/lithium-allocator.h:762: bool Contains(int value) const {
Maybe it's too cute, but you could make this class more specialized and have it
handle the scaling (storing first_artificial_register_ and subtracting it in the
Contains and Add functions).

http://codereview.chromium.org/6065010/diff/1/src/lithium-allocator.h#newcode773
src/lithium-allocator.h:773: static const int kInitialLength = 1024;
This seems like a big initial length.

http://codereview.chromium.org/6065010/diff/1/src/lithium-allocator.h#newcode...
src/lithium-allocator.h:1010: int first_artificial_register_;
I'd be more comfortable with an initial value, even if invalid.

Powered by Google App Engine
This is Rietveld 408576698