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

Issue 6546036: Combine typed and pixel arrays. (Closed)

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

Description

Combine typed and pixel arrays. Worth mentioning: - Specialized versions of pixel array and store/loads inside the generic stubs have been removed, since to have parity for all external arrays, 8 different versions would have to be inlined/checked. - There's a new constant in v8.h for external arrays with pixel array elements.

Patch Set 1 #

Patch Set 2 : implement arm pa store crankshaft support #

Patch Set 3 : fix nits #

Patch Set 4 : fix wrong external element call #

Total comments: 4

Patch Set 5 : feedback, propagate external array type #

Total comments: 14

Patch Set 6 : review feedback #

Patch Set 7 : fix tests #

Patch Set 8 : merge with latest #

Total comments: 1

Patch Set 9 : final version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1031 lines, -1798 lines) Patch
M include/v8.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 5 chunks +40 lines, -18 lines 0 comments Download
M src/arm/code-stubs-arm.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -50 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -152 lines 0 comments Download
M src/arm/ic-arm.cc View 1 2 3 4 5 chunks +7 lines, -39 lines 0 comments Download
M src/arm/lithium-arm.h View 1 2 3 4 5 9 chunks +30 lines, -10 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -7 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 7 5 chunks +20 lines, -8 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 1 2 3 4 10 chunks +212 lines, -290 lines 0 comments Download
M src/ast.h View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -0 lines 0 comments Download
M src/ast.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -6 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -12 lines 0 comments Download
M src/handles.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 7 8 4 chunks +24 lines, -13 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -20 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 4 chunks +19 lines, -15 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 7 7 chunks +12 lines, -12 lines 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 2 3 4 1 chunk +0 lines, -42 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -142 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 2 3 4 8 chunks +11 lines, -37 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -6 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 4 6 chunks +10 lines, -10 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 2 3 4 10 chunks +120 lines, -190 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 3 chunks +6 lines, -12 lines 0 comments Download
M src/log.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/log.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 18 chunks +72 lines, -74 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 24 chunks +34 lines, -31 lines 0 comments Download
M src/objects-debug.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 13 chunks +55 lines, -72 lines 0 comments Download
M src/objects-printer.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M src/objects-visiting.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
M src/spaces.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/stub-cache.h View 1 2 3 4 5 chunks +2 lines, -12 lines 0 comments Download
M src/stub-cache.cc View 1 2 3 4 5 6 4 chunks +65 lines, -71 lines 0 comments Download
M src/type-info.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 7 8 4 chunks +49 lines, -7 lines 0 comments Download
M src/v8-counters.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/x64/code-stubs-x64.h View 1 2 3 4 1 chunk +0 lines, -43 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -138 lines 0 comments Download
M src/x64/ic-x64.cc View 1 2 3 4 5 6 6 chunks +7 lines, -34 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -6 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 4 7 chunks +17 lines, -17 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 1 2 3 4 9 chunks +82 lines, -159 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 10 chunks +33 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
danno
Not quite done yet (map handling on receiver is not quite right), but please take ...
9 years, 10 months ago (2011-02-21 13:03:09 UTC) #1
Mads Ager (chromium)
Looks good. If you finish this, I will take care of the two scary TODOs. ...
9 years, 10 months ago (2011-02-21 13:32:27 UTC) #2
danno
Kevin, can you please take the review over from Mads in his absence? Thanks.
9 years, 9 months ago (2011-03-07 14:58:57 UTC) #3
Kevin Millikin (Chromium)
I've got some small questions and suggestions below. All else LGTM. http://codereview.chromium.org/6546036/diff/10001/src/arm/lithium-arm.h File src/arm/lithium-arm.h (right): ...
9 years, 9 months ago (2011-03-07 15:41:44 UTC) #4
danno
addressed feedback. http://codereview.chromium.org/6546036/diff/10001/src/arm/lithium-arm.h File src/arm/lithium-arm.h (right): http://codereview.chromium.org/6546036/diff/10001/src/arm/lithium-arm.h#newcode1001 src/arm/lithium-arm.h:1001: DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength, "pixel-array-length") On 2011/03/07 15:41:45, Kevin Millikin ...
9 years, 9 months ago (2011-03-08 10:01:56 UTC) #5
Kevin Millikin (Chromium)
9 years, 9 months ago (2011-03-08 14:26:49 UTC) #6
LGTM.

http://codereview.chromium.org/6546036/diff/9192/src/objects-inl.h
File src/objects-inl.h (right):

http://codereview.chromium.org/6546036/diff/9192/src/objects-inl.h#newcode3513
src/objects-inl.h:3513: ASSERT(array);
V8 style seems to be ASSERT(array != NULL);

Powered by Google App Engine
This is Rietveld 408576698