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

Issue 11412129: Fix performance regression in DXT5Decoder.js. (Closed)

Created:
8 years, 1 month ago by mvstanton
Modified:
8 years, 1 month ago
Reviewers:
Sven Panne
CC:
v8-dev
Visibility:
Public.

Description

Fix performance regression in DXT5Decoder.js. R=svenpanne@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=13028

Patch Set 1 #

Patch Set 2 : MIPS and ARM need the same fix as x64. #

Total comments: 2

Patch Set 3 : Comment response: cleaner to return early from big functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -116 lines) Patch
M src/arm/lithium-arm.cc View 1 2 1 chunk +27 lines, -27 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 chunks +30 lines, -35 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 2 1 chunk +29 lines, -27 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 1 chunk +30 lines, -27 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mvstanton
Hi Sven, Here is a fix for the issue you discovered in the DXT5Decoder test. ...
8 years, 1 month ago (2012-11-21 11:44:00 UTC) #1
Sven Panne
The change itself looks OK, but something similar should be done for ARM and MIPS. ...
8 years, 1 month ago (2012-11-21 12:10:12 UTC) #2
mvstanton
On 2012/11/21 12:10:12, Sven Panne wrote: > The change itself looks OK, but something similar ...
8 years, 1 month ago (2012-11-21 13:14:09 UTC) #3
Sven Panne
LGTM with a nit, which applies to all 4 versions of DoStoreKeyed. Let's not make ...
8 years, 1 month ago (2012-11-21 13:30:51 UTC) #4
Sven Panne
LGTM with a nit, which applies to all 4 versions of DoStoreKeyed. Let's not make ...
8 years, 1 month ago (2012-11-21 13:30:53 UTC) #5
mvstanton
8 years, 1 month ago (2012-11-21 13:59:18 UTC) #6
Thanks Sven, I updated the files for early return, and visited the ia32 file in
the same way.

https://codereview.chromium.org/11412129/diff/3001/src/arm/lithium-arm.cc
File src/arm/lithium-arm.cc (right):

https://codereview.chromium.org/11412129/diff/3001/src/arm/lithium-arm.cc#new...
src/arm/lithium-arm.cc:1959: result = new(zone()) LStoreKeyed(object, key, val);
On 2012/11/21 13:30:51, Sven Panne wrote:
> Directly returning here and below without any temp variable is shorter and
> actually clearer, I think. No confusing declaration, no initialization and no
> assertion. :-)

Thanks, that is true! I've adjusted the ia32 file as well because it is similar.

Powered by Google App Engine
This is Rietveld 408576698