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

Issue 6323002: Add custom typed ICs for pixel array loads. (Closed)

Created:
9 years, 11 months ago by danno
Modified:
9 years, 7 months ago
CC:
v8-dev, bauerb at google
Visibility:
Public.

Description

Add custom typed ICs for pixel array loads. Committed: http://code.google.com/p/v8/source/detail?r=6526

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 15

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -54 lines) Patch
M src/arm/ic-arm.cc View 1 2 3 4 5 6 3 chunks +107 lines, -13 lines 0 comments Download
M src/builtins.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 2 3 4 5 6 3 chunks +78 lines, -13 lines 0 comments Download
M src/ic.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 1 chunk +18 lines, -14 lines 0 comments Download
M src/x64/ic-x64.cc View 1 2 3 4 5 6 3 chunks +79 lines, -14 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
danno
please review
9 years, 11 months ago (2011-01-25 12:05:31 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/6323002/diff/40001/src/arm/ic-arm.cc File src/arm/ic-arm.cc (right): http://codereview.chromium.org/6323002/diff/40001/src/arm/ic-arm.cc#newcode1395 src/arm/ic-arm.cc:1395: __ ldr(elements, FieldMemOperand(r1, JSObject::kElementsOffset)); We need to check that ...
9 years, 11 months ago (2011-01-25 14:49:17 UTC) #2
danno
addressed review feedback http://codereview.chromium.org/6323002/diff/40001/src/arm/ic-arm.cc File src/arm/ic-arm.cc (right): http://codereview.chromium.org/6323002/diff/40001/src/arm/ic-arm.cc#newcode1395 src/arm/ic-arm.cc:1395: __ ldr(elements, FieldMemOperand(r1, JSObject::kElementsOffset)); On 2011/01/25 ...
9 years, 11 months ago (2011-01-25 20:56:29 UTC) #3
Mads Ager (chromium)
LGTM, with one suggestion. http://codereview.chromium.org/6323002/diff/40001/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/6323002/diff/40001/src/ic.cc#newcode1202 src/ic.cc:1202: stub = pixel_array_stub(); True, we ...
9 years, 11 months ago (2011-01-26 08:10:20 UTC) #4
Søren Thygesen Gjesse
Drive by comments. http://codereview.chromium.org/6323002/diff/28003/src/arm/ic-arm.cc File src/arm/ic-arm.cc (right): http://codereview.chromium.org/6323002/diff/28003/src/arm/ic-arm.cc#newcode1408 src/arm/ic-arm.cc:1408: __ BranchOnNotSmi(key, &slow); This has changed ...
9 years, 11 months ago (2011-01-26 21:35:17 UTC) #5
danno
addressed feedback, added test cases to exercise IC code paths. http://codereview.chromium.org/6323002/diff/28003/src/arm/ic-arm.cc File src/arm/ic-arm.cc (right): http://codereview.chromium.org/6323002/diff/28003/src/arm/ic-arm.cc#newcode1408 ...
9 years, 11 months ago (2011-01-28 10:32:08 UTC) #6
danno
http://codereview.chromium.org/6323002/diff/74001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): http://codereview.chromium.org/6323002/diff/74001/test/cctest/test-api.cc#newcode10178 test/cctest/test-api.cc:10178: // CHECK_EQ(1, result->Int32Value()); i'll fix this, shouldn't be commented ...
9 years, 11 months ago (2011-01-28 10:35:36 UTC) #7
Mads Ager (chromium)
9 years, 11 months ago (2011-01-28 10:39:16 UTC) #8
LGTM

http://codereview.chromium.org/6323002/diff/74001/src/arm/ic-arm.cc
File src/arm/ic-arm.cc (right):

http://codereview.chromium.org/6323002/diff/74001/src/arm/ic-arm.cc#newcode548
src/arm/ic-arm.cc:548: __ JumpIfNotSmi(key, key_not_smi);
Either make the entire 'if (...) __ JumpIfNotSmi(...);' a one-liner or use
braces around the body.

http://codereview.chromium.org/6323002/diff/74001/src/ia32/ic-ia32.cc
File src/ia32/ic-ia32.cc (right):

http://codereview.chromium.org/6323002/diff/74001/src/ia32/ic-ia32.cc#newcode513
src/ia32/ic-ia32.cc:513: // Key must be a smi..
.. -> .

http://codereview.chromium.org/6323002/diff/74001/src/ia32/ic-ia32.cc#newcode526
src/ia32/ic-ia32.cc:526: Label oor;
Unused label?

http://codereview.chromium.org/6323002/diff/74001/src/x64/ic-x64.cc
File src/x64/ic-x64.cc (right):

http://codereview.chromium.org/6323002/diff/74001/src/x64/ic-x64.cc#newcode538
src/x64/ic-x64.cc:538: if (key_not_smi != NULL)
Braces or one-liner.

http://codereview.chromium.org/6323002/diff/74001/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6323002/diff/74001/test/cctest/test-api.cc#new...
test/cctest/test-api.cc:10178: // CHECK_EQ(1, result->Int32Value());
On 2011/01/28 10:35:36, danno wrote:
> i'll fix this, shouldn't be commented out.

Thanks!

http://codereview.chromium.org/6323002/diff/74001/test/cctest/test-api.cc#new...
test/cctest/test-api.cc:10356: "for (var i = 0; i < 10; ++i) { result =
pa_load(just_ints); }"
On 2011/01/28 10:35:36, danno wrote:
> I'll fix the 80 cols, too, here and below.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698