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

Issue 6410112: Implement crankshaft support for pixel array loads. (Closed)

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

Description

Implement crankshaft support for pixel array loads.

Patch Set 1 #

Patch Set 2 : ia32 working #

Total comments: 27

Patch Set 3 : review feedback, x64 and arm impl #

Total comments: 3

Patch Set 4 : review feedback and merge #

Patch Set 5 : merge with latest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -27 lines) Patch
M src/api.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/arm/lithium-arm.h View 1 2 3 5 chunks +41 lines, -0 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 3 chunks +27 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 4 chunks +32 lines, -4 lines 0 comments Download
M src/factory.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/hydrogen.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 2 chunks +36 lines, -6 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 8 chunks +83 lines, -0 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 3 chunks +35 lines, -6 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 4 5 chunks +41 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 3 chunks +27 lines, -1 line 0 comments Download
M src/objects.h View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/v8-counters.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 chunks +34 lines, -5 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 5 chunks +41 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 3 chunks +27 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
danno
Work in progress, but I'd appreciate feedback. ia32 pixel loads get optimized, but please see ...
9 years, 10 months ago (2011-02-07 09:47:27 UTC) #1
Mads Ager (chromium)
First round of comments. I think you need a new representation type for this. http://codereview.chromium.org/6410112/diff/2028/src/hydrogen-instructions.h ...
9 years, 10 months ago (2011-02-07 11:36:06 UTC) #2
Kevin Millikin (Chromium)
First round of comments from me. http://codereview.chromium.org/6410112/diff/2028/src/ast.h File src/ast.h (right): http://codereview.chromium.org/6410112/diff/2028/src/ast.h#newcode1211 src/ast.h:1211: has_pixel_array_elements_(false), This field ...
9 years, 10 months ago (2011-02-07 12:39:08 UTC) #3
danno
addressed feedback, added x64 and arm port http://codereview.chromium.org/6410112/diff/2028/src/ast.h File src/ast.h (right): http://codereview.chromium.org/6410112/diff/2028/src/ast.h#newcode1211 src/ast.h:1211: has_pixel_array_elements_(false), On ...
9 years, 10 months ago (2011-02-08 09:25:57 UTC) #4
Mads Ager (chromium)
9 years, 10 months ago (2011-02-08 17:26:31 UTC) #5
LGTM

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

http://codereview.chromium.org/6410112/diff/8001/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:1347: SetFlag(kUseGVN);
I get a little worried when I see kUseGVN without a kDependsOnSomething. Since
the length cannot change of a pixel array and the map changes when the pixel
array is changed I can see why this is the case (because it takes as input the
output from loading the elements which does depend on maps). Can we add a
comment here?

http://codereview.chromium.org/6410112/diff/8001/src/hydrogen-instructions.h#...
src/hydrogen-instructions.h:1484: SetFlag(kUseGVN);
Same comment here. I see why we don't need a kDependsOn... here, but a comment
would be nice.

http://codereview.chromium.org/6410112/diff/8001/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/6410112/diff/8001/src/hydrogen.cc#newcode3754
src/hydrogen.cc:3754: new HLoadPixelArrayElement(external_elements,
Move the second parameter to this line?

Powered by Google App Engine
This is Rietveld 408576698