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

Issue 6528013: Implement crankshaft support for pixel array stores. (Closed)

Created:
9 years, 10 months ago by danno
Modified:
9 years, 7 months ago
Visibility:
Public.

Description

Implement crankshaft support for pixel array stores.

Patch Set 1 #

Patch Set 2 : tweaks #

Total comments: 9

Patch Set 3 : review feedback #

Patch Set 4 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -11 lines) Patch
M src/arm/lithium-arm.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/hydrogen.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 chunks +37 lines, -7 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 chunks +13 lines, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 chunks +22 lines, -3 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 chunks +23 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 chunks +21 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
danno
Please review. Thanks!
9 years, 10 months ago (2011-02-15 16:31:27 UTC) #1
Kevin Millikin (Chromium)
LGTM, very small suggestions below. http://codereview.chromium.org/6528013/diff/5001/src/arm/lithium-arm.h File src/arm/lithium-arm.h (right): http://codereview.chromium.org/6528013/diff/5001/src/arm/lithium-arm.h#newcode1169 src/arm/lithium-arm.h:1169: class LStorePixelArrayElement: public LTemplateInstruction<0, ...
9 years, 10 months ago (2011-02-16 08:51:25 UTC) #2
danno
9 years, 10 months ago (2011-02-16 13:54:22 UTC) #3
Addressed and committed.

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

http://codereview.chromium.org/6528013/diff/5001/src/arm/lithium-arm.h#newcod...
src/arm/lithium-arm.h:1169: class LStorePixelArrayElement: public
LTemplateInstruction<0, 3, 1> {
On 2011/02/16 08:51:25, Kevin Millikin wrote:
> You should just delete this instruction because it's not used yet on the
> backend.

Done.

http://codereview.chromium.org/6528013/diff/5001/src/hydrogen-instructions.h
File src/hydrogen-instructions.h (right):

http://codereview.chromium.org/6528013/diff/5001/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:3195: HValue* external_pointer() const { return
OperandAt(0); }
On 2011/02/16 08:51:25, Kevin Millikin wrote:
> I would just use return operands_[0] (OperandAt is virtual).

Done.

http://codereview.chromium.org/6528013/diff/5001/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/6528013/diff/5001/src/hydrogen.cc#newcode3773
src/hydrogen.cc:3773: HInstruction* length = AddInstruction(new
HPixelArrayLength(elements));
On 2011/02/16 08:51:25, Kevin Millikin wrote:
> Wow, AddInstruction returns a value and we usually ignore it?  Who knew.
> 
> I think I'd rather just make it have a side effect and no retrun value (as a
> separate change).  Return values that are normally ignored seems like a bad
> smell.
> 
> Could you write this statement as two separate ones:
> 
> HInstruction* length = new HPixelArrayLength(elements);
> AddInstruction(length);

Done.

http://codereview.chromium.org/6528013/diff/5001/src/ia32/lithium-ia32.cc
File src/ia32/lithium-ia32.cc (right):

http://codereview.chromium.org/6528013/diff/5001/src/ia32/lithium-ia32.cc#new...
src/ia32/lithium-ia32.cc:1845: LOperand* clamped = FixedTemp(eax);
On 2011/02/16 08:51:25, Kevin Millikin wrote:
> Maybe a simple comment that this has to be a byte register, choice of eax is
> arbitrary.

Done.

Powered by Google App Engine
This is Rietveld 408576698