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

Issue 6250027: Port lithium template classes to ARM.... (Closed)

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

Description

Port lithium template classes to ARM. This is a port of the IA32 version and is needed to allow changing the register allocator interface in a later change. Committed: http://code.google.com/p/v8/source/detail?r=6436

Patch Set 1 #

Patch Set 2 : fixed lintos #

Total comments: 6

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -902 lines) Patch
M src/arm/lithium-arm.h View 1 2 34 chunks +604 lines, -603 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 33 chunks +154 lines, -161 lines 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 58 chunks +97 lines, -116 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
fschneider
9 years, 11 months ago (2011-01-24 07:23:49 UTC) #1
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.cc File src/arm/lithium-arm.cc (right): http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.cc#newcode901 src/arm/lithium-arm.cc:901: // TODO(fschneider): Handle test instructions uniformly like Username ...
9 years, 11 months ago (2011-01-24 08:08:40 UTC) #2
fschneider
9 years, 11 months ago (2011-01-24 09:40:16 UTC) #3
http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.cc
File src/arm/lithium-arm.cc (right):

http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.cc#newco...
src/arm/lithium-arm.cc:901: // TODO(fschneider): Handle test instructions
uniformly like
On 2011/01/24 08:08:40, Søren Gjesse wrote:
> Username -> issue number

I removed the todo since it really is part of our bigger refactoring of the IR.

http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.h
File src/arm/lithium-arm.h (right):

http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.h#newcod...
src/arm/lithium-arm.h:336: template<typename T, int N>
On 2011/01/24 08:08:40, Søren Gjesse wrote:
> I know that templates are usually specified using single uppercase letters,
but
> it is sometimes quite difficult to guess what they specify (here T is a type
in
> one place and the temporary count in another place). A short comment on what
> each argument specify would be nice. And maybe use names - a least for the
> non-type arguments.

Done.

http://codereview.chromium.org/6250027/diff/7001/src/arm/lithium-arm.h#newcod...
src/arm/lithium-arm.h:531: 
On 2011/01/24 08:08:40, Søren Gjesse wrote:
> Any particular reason for not keeping the LBinaryOperation?
> 
> template<int T>
> class LBinaryOperation: public LTemplateInstruction<1, 2, T> {
>   ...

I preferred always having all three template parameters explicitly.
LBinaryOperation would be really just a typedef abbreviation for
LTemplateInstruction<1, 2, T>.

Powered by Google App Engine
This is Rietveld 408576698