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

Issue 6344005: Introduce extra IC state to record additional feedback from IC-s. (Closed)

Created:
9 years, 11 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Introduce extra IC state to record additional feedback from IC-s. Extra IC state is only two bits and only supported for call IC-s for now. To change its extra state an IC stub jumps to a new miss stub that goes to runtime as usual but then instead of going megamorphic generates a monomorphic stub with the updated state. Committed: http://code.google.com/p/v8/source/detail?r=6370

Patch Set 1 #

Patch Set 2 : Use the extra state in string IC stubs #

Total comments: 1

Patch Set 3 : Moved the logic to runtime #

Total comments: 4

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : Shared miss stub #

Total comments: 4

Patch Set 7 : Less hacks #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 1

Patch Set 11 : Last fixes and ports to arm and x64 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+505 lines, -213 lines) Patch
M src/arm/ic-arm.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -2 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +38 lines, -16 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 2 2 chunks +9 lines, -3 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +35 lines, -14 lines 0 comments Download
M src/ic.h View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M src/ic.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +209 lines, -100 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 4 chunks +19 lines, -8 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 5 chunks +22 lines, -1 line 0 comments Download
M src/stub-cache.h View 1 2 3 4 5 3 chunks +11 lines, -7 lines 0 comments Download
M src/stub-cache.cc View 1 2 3 4 5 17 chunks +84 lines, -46 lines 0 comments Download
M src/type-info.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -2 lines 0 comments Download
M src/x64/ic-x64.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -2 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +34 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Vitaly Repeshko
9 years, 11 months ago (2011-01-17 11:04:55 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/6344005/diff/3001/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/6344005/diff/3001/src/ic.cc#newcode1651 src/ic.cc:1651: if (args.length() == 2) { As discussed offline I ...
9 years, 11 months ago (2011-01-17 14:06:00 UTC) #2
Vitaly Repeshko
Moved the logic to the runtime system. The generated code is simpler now. Ready for ...
9 years, 11 months ago (2011-01-17 18:02:36 UTC) #3
Mads Ager (chromium)
This patch confuses me. You went back to one miss stub that takes just two ...
9 years, 11 months ago (2011-01-18 11:28:57 UTC) #4
Vitaly Repeshko
Removed the forgotten parts of the old code. Sorry.
9 years, 11 months ago (2011-01-18 11:52:07 UTC) #5
Vitaly Repeshko
http://codereview.chromium.org/6344005/diff/6001/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/6344005/diff/6001/src/ic.cc#newcode657 src/ic.cc:657: if (kind_ == Code::CALL_IC && state == MONOMORPHIC) { ...
9 years, 11 months ago (2011-01-18 12:13:46 UTC) #6
Mads Ager (chromium)
I don't like the changing of the state to PREMONOMORPHIC much. That seems like a ...
9 years, 11 months ago (2011-01-18 12:54:00 UTC) #7
Mads Ager (chromium)
LGTM once x64 and arm code is updated. http://codereview.chromium.org/6344005/diff/32001/src/ic.cc File src/ic.cc (right): http://codereview.chromium.org/6344005/diff/32001/src/ic.cc#newcode760 src/ic.cc:760: if ...
9 years, 11 months ago (2011-01-18 15:32:26 UTC) #8
Mads Ager (chromium)
9 years, 11 months ago (2011-01-18 15:50:55 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698