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

Issue 10263008: Implement clearing of CompareICs. (Closed)

Created:
8 years, 7 months ago by Michael Starzinger
Modified:
8 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement clearing of CompareICs. This allows CompareICs to be cleared during garbage collection to avoid cross-context garbage retention through maps stored in CompareIC stubs for the KNOWN_OBJECTS state. R=vegorov@chromium.org BUG=v8:2102 Committed: https://code.google.com/p/v8/source/detail?r=11491

Patch Set 1 #

Total comments: 4

Patch Set 2 : Ported to x64. #

Patch Set 3 : Ported to ARM. #

Patch Set 4 : Addressed comments by Vyacheslav Egorov. #

Total comments: 4

Patch Set 5 : Addressed moar comments by Vyacheslav Egorov. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -52 lines) Patch
M src/arm/ic-arm.cc View 1 2 3 4 2 chunks +22 lines, -25 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/ic-ia32.cc View 2 chunks +13 lines, -9 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/ic.h View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M src/ic.cc View 1 2 3 6 chunks +28 lines, -4 lines 0 comments Download
M src/objects.h View 2 chunks +7 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +12 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/ic-x64.cc View 1 2 3 4 2 chunks +13 lines, -9 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Michael Starzinger
Only for ia32, ports to x64 and ARM will follow shortly.
8 years, 7 months ago (2012-04-30 13:48:58 UTC) #1
Vyacheslav Egorov (Chromium)
ia32 lgtm https://chromiumcodereview.appspot.com/10263008/diff/1/src/ic.cc File src/ic.cc (right): https://chromiumcodereview.appspot.com/10263008/diff/1/src/ic.cc#newcode415 src/ic.cc:415: if (target->compare_state() == UNINITIALIZED) return; We can ...
8 years, 7 months ago (2012-04-30 14:27:10 UTC) #2
Michael Starzinger
Ported to x64 and ARM. Addressed comments. PTAL. https://chromiumcodereview.appspot.com/10263008/diff/1/src/ic.cc File src/ic.cc (right): https://chromiumcodereview.appspot.com/10263008/diff/1/src/ic.cc#newcode415 src/ic.cc:415: if ...
8 years, 7 months ago (2012-05-02 11:07:23 UTC) #3
Vyacheslav Egorov (Chromium)
lgtm https://chromiumcodereview.appspot.com/10263008/diff/12001/src/arm/ic-arm.cc File src/arm/ic-arm.cc (right): https://chromiumcodereview.appspot.com/10263008/diff/12001/src/arm/ic-arm.cc#newcode1732 src/arm/ic-arm.cc:1732: // This is patching a conditional "jump if/if-not ...
8 years, 7 months ago (2012-05-02 11:29:48 UTC) #4
Michael Starzinger
8 years, 7 months ago (2012-05-03 10:56:21 UTC) #5
Addressed comments. Rebased. Landed.

https://chromiumcodereview.appspot.com/10263008/diff/12001/src/arm/ic-arm.cc
File src/arm/ic-arm.cc (right):

https://chromiumcodereview.appspot.com/10263008/diff/12001/src/arm/ic-arm.cc#...
src/arm/ic-arm.cc:1732: // This is patching a conditional "jump if/if-not smi"
site.
On 2012/05/02 11:29:48, Vyacheslav Egorov wrote:
> I think to align with code snippets below this should be jump if not smi/jump
if
> smi.

Done.

https://chromiumcodereview.appspot.com/10263008/diff/12001/src/x64/ic-x64.cc
File src/x64/ic-x64.cc (right):

https://chromiumcodereview.appspot.com/10263008/diff/12001/src/x64/ic-x64.cc#...
src/x64/ic-x64.cc:1770: // short jump-if-carry/not-carry at this position.
On 2012/05/02 11:29:48, Vyacheslav Egorov wrote:
> Please update the comment just like in ia32

Done.

Powered by Google App Engine
This is Rietveld 408576698