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

Issue 251041: Add pixel array handling in keyed IC's for x64 version. (Closed)

Created:
11 years, 2 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Add pixel array handling in keyed IC's for x64 version. Committed: http://code.google.com/p/v8/source/detail?r=3000

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -28 lines) Patch
M src/ia32/ic-ia32.cc View 1 chunk +7 lines, -8 lines 0 comments Download
M src/x64/ic-x64.cc View 1 9 chunks +64 lines, -20 lines 2 comments Download
M src/x64/macro-assembler-x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
11 years, 2 months ago (2009-09-30 07:58:03 UTC) #1
Lasse Reichstein
LGTM, with suggestions. http://codereview.chromium.org/251041/diff/1/2 File src/x64/ic-x64.cc (right): http://codereview.chromium.org/251041/diff/1/2#newcode307 Line 307: // ecx: elements array ecx ...
11 years, 2 months ago (2009-09-30 08:43:02 UTC) #2
Søren Thygesen Gjesse
http://codereview.chromium.org/251041/diff/1/2 File src/x64/ic-x64.cc (right): http://codereview.chromium.org/251041/diff/1/2#newcode307 Line 307: // ecx: elements array On 2009/09/30 08:43:02, Lasse ...
11 years, 2 months ago (2009-09-30 12:01:33 UTC) #3
Søren Thygesen Gjesse
Please take another look.
11 years, 2 months ago (2009-09-30 12:05:39 UTC) #4
Lasse Reichstein
LGTM. http://codereview.chromium.org/251041/diff/3001/1003 File src/x64/ic-x64.cc (right): http://codereview.chromium.org/251041/diff/3001/1003#newcode494 Line 494: __ j(negative, &is_negative); A thought: It might ...
11 years, 2 months ago (2009-09-30 16:50:40 UTC) #5
Søren Thygesen Gjesse
11 years, 2 months ago (2009-09-30 20:27:05 UTC) #6
http://codereview.chromium.org/251041/diff/3001/1003
File src/x64/ic-x64.cc (right):

http://codereview.chromium.org/251041/diff/3001/1003#newcode494
Line 494: __ j(negative, &is_negative);
On 2009/09/30 16:50:40, Lasse Reichstein wrote:
> A thought: It might be faster to do the out-of-range part using setcc:
>   // __ xor_(rax, rax);  // maybe clear rax first, to avoid unnecessary
> dependencies
>   __ setcc(negative, rax);  // 1 if negative, 0 if positive.
>   __ subb(rax, Immediate(1));  // 0 if negative, 255 if positive.
> (can use subl too if we cleared rax first).

Nice jump-free clamping. I will try to see if it has a mesurable performance
difference and create a new changelist if it has. The clamping should not be the
common case, but then again who knows what code is out there.

Powered by Google App Engine
This is Rietveld 408576698