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

Issue 2161153002: [ic] Fix megamorphic stub cache probing on some platforms. (Closed)

Created:
4 years, 5 months ago by Igor Sheludko
Modified:
4 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ic] Fix megamorphic stub cache probing on some platforms. This CL fixes weird performance implications when changing layout of Code::flags field: it happened that the unused ICStateField with MONOMORPHIC value in the handlers' flags was accidentally offsetting the underflow bug in stub cache probing code on arm, arm64, mips and mips64. Stub cache tests now work even when snapshot is enabled. Drive-by-change: Fixed counters manipulation on arm64 and mips64. BUG=chromium:618701 Committed: https://crrev.com/7da34f8acb99bc513f366aaa8be23742eb30807b Cr-Commit-Position: refs/heads/master@{#37910}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -83 lines) Patch
M src/arm64/macro-assembler-arm64.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/ic/arm/stub-cache-arm.cc View 1 3 chunks +10 lines, -16 lines 0 comments Download
M src/ic/arm64/stub-cache-arm64.cc View 1 3 chunks +15 lines, -10 lines 0 comments Download
M src/ic/ia32/stub-cache-ia32.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/mips/stub-cache-mips.cc View 1 3 chunks +10 lines, -13 lines 0 comments Download
M src/ic/mips64/stub-cache-mips64.cc View 1 3 chunks +13 lines, -15 lines 0 comments Download
M src/ic/ppc/stub-cache-ppc.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/s390/stub-cache-s390.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/x87/stub-cache-x87.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M src/objects.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 4 chunks +55 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (22 generated)
Igor Sheludko
PTAL
4 years, 5 months ago (2016-07-20 08:30:26 UTC) #16
Jakob Kummerow
LGTM with comments. https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm/stub-cache-arm.cc File src/ic/arm/stub-cache-arm.cc (right): https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm/stub-cache-arm.cc#newcode20 src/ic/arm/stub-cache-arm.cc:20: // Number of the cache entry, ...
4 years, 5 months ago (2016-07-20 12:09:46 UTC) #17
Igor Sheludko
https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm/stub-cache-arm.cc File src/ic/arm/stub-cache-arm.cc (right): https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm/stub-cache-arm.cc#newcode20 src/ic/arm/stub-cache-arm.cc:20: // Number of the cache entry, not scaled. On ...
4 years, 5 months ago (2016-07-20 13:40:26 UTC) #18
Jakob Kummerow
lgtm https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm64/stub-cache-arm64.cc File src/ic/arm64/stub-cache-arm64.cc (right): https://codereview.chromium.org/2161153002/diff/60001/src/ic/arm64/stub-cache-arm64.cc#newcode50 src/ic/arm64/stub-cache-arm64.cc:50: __ Mov(scratch, key_offset); On 2016/07/20 13:40:26, Igor Sheludko ...
4 years, 5 months ago (2016-07-20 13:50:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2161153002/80001
4 years, 5 months ago (2016-07-20 14:16:51 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 5 months ago (2016-07-20 14:18:54 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 14:19:51 UTC) #29
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7da34f8acb99bc513f366aaa8be23742eb30807b
Cr-Commit-Position: refs/heads/master@{#37910}

Powered by Google App Engine
This is Rietveld 408576698