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

Issue 7114004: Add support for hydrogen control instructions with >2 successor blocks. (Closed)

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

Description

Add support for hydrogen control instructions with >2 successor blocks. This change makes the number of successors of a control instruction configurable with a template parameter and changes the existing instructions to use it. To iterate over all successors I added an iterator instead of always calling First- and SecondSuccessor. Committed: http://code.google.com/p/v8/source/detail?r=8262

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : addressed comments and fixed ARM build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -232 lines) Patch
M src/arm/lithium-arm.h View 1 2 3 chunks +4 lines, -34 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 1 chunk +6 lines, -9 lines 0 comments Download
M src/hydrogen.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M src/hydrogen.cc View 1 2 5 chunks +22 lines, -21 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 7 chunks +60 lines, -62 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 chunks +4 lines, -34 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 1 chunk +6 lines, -9 lines 0 comments Download
M src/lithium-allocator.cc View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M src/utils.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 chunks +4 lines, -34 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 1 chunk +6 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
This is a follow-up to http://codereview.chromium.org/7008011/ I addressed you comments there, but accidentally created a ...
9 years, 6 months ago (2011-06-07 12:57:18 UTC) #1
Kevin Millikin (Chromium)
LGTM if you change the iterator interface slightly. http://codereview.chromium.org/7114004/diff/6002/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/7114004/diff/6002/src/hydrogen-instructions.h#newcode802 src/hydrogen-instructions.h:802: bool ...
9 years, 6 months ago (2011-06-10 11:39:15 UTC) #2
fschneider
9 years, 6 months ago (2011-06-10 12:09:36 UTC) #3
http://codereview.chromium.org/7114004/diff/6002/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

http://codereview.chromium.org/7114004/diff/6002/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:802: bool HasNext() { return next_ <
instr_->SuccessorCount(); }
On 2011/06/10 11:39:15, Kevin Millikin wrote:
> Most of the existing hydrogen/lithium iterators have changed to have the
> interface 
> 
> bool Done();
> T* Current();
> void Advance();
> 
> Could you change this one?

Done.

http://codereview.chromium.org/7114004/diff/6002/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:854: class HDeoptimize : public HControlInstruction
{
On 2011/06/10 11:39:15, Kevin Millikin wrote:
> The rest of this file, with only a coupld of exceptions, doesn't have a space
> before ':'

Done.

Powered by Google App Engine
This is Rietveld 408576698