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

Issue 6902112: Avoid using a register for constant external array indices. (Closed)

Created:
9 years, 8 months ago by Jakob Kummerow
Modified:
9 years, 6 months ago
Reviewers:
fschneider, danno
CC:
v8-dev
Visibility:
Public.

Description

Avoid using a register for constant external array indices. This CL is based on and obsoletes CL 6879037. TEST=mjsunit/external-array.js Committed: http://code.google.com/p/v8/source/detail?r=7844

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : add arch-independent ExternalArrayTypeToShiftSize() function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -116 lines) Patch
M src/arm/lithium-arm.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 2 chunks +61 lines, -31 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 chunks +36 lines, -20 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/lithium.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/lithium.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 chunks +36 lines, -20 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
M test/mjsunit/external-array.js View 3 chunks +70 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jakob Kummerow
Finally... this has taken way longer than expected. PTAL.
9 years, 8 months ago (2011-04-28 15:16:37 UTC) #1
danno
LGTM http://codereview.chromium.org/6902112/diff/1/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): http://codereview.chromium.org/6902112/diff/1/src/arm/lithium-codegen-arm.cc#newcode2495 src/arm/lithium-codegen-arm.cc:2495: key_is_constant ? Operand(constant_key * 4) : Operand(key, LSL, ...
9 years, 8 months ago (2011-04-28 17:59:55 UTC) #2
fschneider
Drive-by style comment: http://codereview.chromium.org/6902112/diff/1/src/ia32/lithium-codegen-ia32.cc File src/ia32/lithium-codegen-ia32.cc (right): http://codereview.chromium.org/6902112/diff/1/src/ia32/lithium-codegen-ia32.cc#newcode2424 src/ia32/lithium-codegen-ia32.cc:2424: if (key_is_constant) Same comment as for ...
9 years, 8 months ago (2011-04-29 09:13:47 UTC) #3
Jakob Kummerow
http://codereview.chromium.org/6902112/diff/1/src/ia32/lithium-codegen-ia32.cc File src/ia32/lithium-codegen-ia32.cc (right): http://codereview.chromium.org/6902112/diff/1/src/ia32/lithium-codegen-ia32.cc#newcode2424 src/ia32/lithium-codegen-ia32.cc:2424: if (key_is_constant) On 2011/04/29 09:13:47, fschneider wrote: > Same ...
9 years, 8 months ago (2011-04-29 10:04:16 UTC) #4
Jakob Kummerow
As discussed offline, I factored out the mapping from ExternalArrayType to a shift size (i.e. ...
9 years, 7 months ago (2011-05-09 11:02:57 UTC) #5
danno
9 years, 7 months ago (2011-05-10 09:48:54 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698