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

Issue 16950004: Reduce the amount of full code generated to fill out array literals. (Closed)

Created:
7 years, 6 months ago by Sven Panne
Modified:
7 years, 6 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Reduce the amount of full code generated to fill out array literals. This is achieved by tuning the calling convention of StoreArrayLiteralStub: * The map of the array literal can be loaded in the stub from the array literal itself, there is no need to pass it at all. * The array literal is already on the stack, so there is no need to pass it again via a register. * The literal index is unchanged while filling the literal, so we can push it on the stack once and avoid passing it every time. Note that we need to mirror this change in the stack layout in crankshaft, too. R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15138

Patch Set 1 #

Total comments: 4

Patch Set 2 : Feedback. Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -31 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/arm/full-codegen-arm.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M src/hydrogen.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 4 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
The auto-increment optimization we talked about offline is still missing, I will add this later ...
7 years, 6 months ago (2013-06-13 12:46:15 UTC) #1
Michael Starzinger
LGTM with comments. https://codereview.chromium.org/16950004/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/16950004/diff/1/src/hydrogen.cc#newcode6105 src/hydrogen.cc:6105: new(zone()) HConstant(expr->literal_index(), Representation::Smi()))); I would just ...
7 years, 6 months ago (2013-06-13 13:57:27 UTC) #2
Sven Panne
Comments addressed, landing... https://codereview.chromium.org/16950004/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/16950004/diff/1/src/hydrogen.cc#newcode6105 src/hydrogen.cc:6105: new(zone()) HConstant(expr->literal_index(), Representation::Smi()))); On 2013/06/13 13:57:27, ...
7 years, 6 months ago (2013-06-14 06:04:32 UTC) #3
Sven Panne
7 years, 6 months ago (2013-06-14 06:06:09 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r15138 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698