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

Issue 3134027: Reapplying r5147 (caching maps for slow case objects).... (Closed)

Created:
10 years, 4 months ago by Vladislav Kaznacheev
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reapplying r5147 (caching maps for slow case objects). r5147 wrongly assumed that a code cache for a slow case map is always empty. This patch solves this: whenever we attempt to add a stub to a map's code cache we check that this map is cached. If it is we give the object its own copy of the map and only then modify the map. Committed: http://code.google.com/p/v8/source/detail?r=5342

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -74 lines) Patch
M src/bootstrapper.cc View 3 chunks +9 lines, -0 lines 0 comments Download
M src/contexts.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M src/ic.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/ic.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/ic-inl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.h View 6 chunks +37 lines, -0 lines 0 comments Download
M src/objects.cc View 1 3 chunks +155 lines, -16 lines 0 comments Download
M src/objects-debug.cc View 1 3 chunks +27 lines, -0 lines 0 comments Download
M src/objects-inl.h View 2 chunks +13 lines, -0 lines 0 comments Download
M src/stub-cache.cc View 29 chunks +40 lines, -51 lines 0 comments Download
M src/v8-counters.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Vladislav Kaznacheev
10 years, 4 months ago (2010-08-24 10:11:49 UTC) #1
antonm
LGTM http://codereview.chromium.org/3134027/diff/1/9 File src/objects-debug.cc (right): http://codereview.chromium.org/3134027/diff/1/9#newcode654 src/objects-debug.cc:654: ASSERT(instance_descriptors() == Heap::empty_descriptor_array()); minor cosmetic: maybe ASSERT_EQ is ...
10 years, 4 months ago (2010-08-24 12:36:19 UTC) #2
Vladislav Kaznacheev
10 years, 4 months ago (2010-08-24 13:00:21 UTC) #3
http://codereview.chromium.org/3134027/diff/1/9
File src/objects-debug.cc (right):

http://codereview.chromium.org/3134027/diff/1/9#newcode654
src/objects-debug.cc:654: ASSERT(instance_descriptors() ==
Heap::empty_descriptor_array());
On 2010/08/24 12:36:20, antonm wrote:
> minor cosmetic: maybe ASSERT_EQ is better.

Done.

http://codereview.chromium.org/3134027/diff/1/11
File src/objects.cc (right):

http://codereview.chromium.org/3134027/diff/1/11#newcode2102
src/objects.cc:2102: // Caching for global objects is not worth it (there too
few of them).
On 2010/08/24 12:36:20, antonm wrote:
> minor: there <are> too few of them

Done.

Powered by Google App Engine
This is Rietveld 408576698