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

Issue 3032028: Cache maps for slow case objects. (Closed)

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

Description

Cache maps for slow case objects. Committed: http://code.google.com/p/v8/source/detail?r=5147

Patch Set 1 #

Total comments: 24

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -17 lines) Patch
M src/bootstrapper.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/heap.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M src/objects.h View 1 5 chunks +31 lines, -0 lines 0 comments Download
M src/objects.cc View 1 3 chunks +112 lines, -17 lines 2 comments Download
M src/objects-debug.cc View 1 2 chunks +25 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 chunks +13 lines, -0 lines 0 comments Download
M src/v8-counters.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vladislav Kaznacheev
10 years, 5 months ago (2010-07-27 08:55:20 UTC) #1
Anton Muhin
That looks mostly LGTM. My main complaint is absence of tests. I'd suggest add both ...
10 years, 5 months ago (2010-07-27 11:49:09 UTC) #2
Vladislav Kaznacheev
Refactored. Please review again. http://codereview.chromium.org/3032028/diff/1/4 File src/heap.cc (right): http://codereview.chromium.org/3032028/diff/1/4#newcode780 src/heap.cc:780: ClearNormalizedMapCaches(); On 2010/07/27 11:49:09, antonm1 ...
10 years, 5 months ago (2010-07-28 12:01:15 UTC) #3
antonm
LGTM. Last version looks notably better imho. http://codereview.chromium.org/3032028/diff/12001/13007 File src/objects.cc (right): http://codereview.chromium.org/3032028/diff/12001/13007#newcode2142 src/objects.cc:2142: Counters::normalized_maps.Increment(); shouldn't ...
10 years, 4 months ago (2010-07-28 12:14:51 UTC) #4
Vladislav Kaznacheev
10 years, 4 months ago (2010-07-28 12:21:39 UTC) #5
http://codereview.chromium.org/3032028/diff/12001/13007
File src/objects.cc (right):

http://codereview.chromium.org/3032028/diff/12001/13007#newcode2142
src/objects.cc:2142: Counters::normalized_maps.Increment();
On 2010/07/28 12:14:51, antonm wrote:
> shouldn't there be another counter which ticks when NormalizedMapCache::Get is
> invoked?

We already have it: Counters::props_to_dictionary which is incremented in
NormalizedProperties every time it is called.

Powered by Google App Engine
This is Rietveld 408576698