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

Issue 6902029: Add prototype transitions cache to Map. (Closed)

Created:
9 years, 8 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add prototype transitions cache to Map. Committed: http://code.google.com/p/v8/source/detail?r=7679

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -7 lines) Patch
M src/flag-definitions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 3 chunks +42 lines, -1 line 0 comments Download
M src/objects.h View 4 chunks +24 lines, -2 lines 2 comments Download
M src/objects.cc View 2 chunks +58 lines, -4 lines 1 comment Download
M src/objects-inl.h View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 8 months ago (2011-04-26 08:58:30 UTC) #1
Mads Ager (chromium)
9 years, 8 months ago (2011-04-26 09:14:23 UTC) #2
LGTM

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

http://codereview.chromium.org/6902029/diff/1/src/objects.cc#newcode6907
src/objects.cc:6907: if (finger >= capacity) {
I think we want to put a limit on the number of prototype transitions that we
want to cache. In particular since we are doing linear search.

http://codereview.chromium.org/6902029/diff/1/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/6902029/diff/1/src/objects.h#newcode3755
src/objects.h:3755: // Prototypre transition is a transition that happens
Prototypre -> Prototype

http://codereview.chromium.org/6902029/diff/1/src/objects.h#newcode3877
src/objects.h:3877: static const int kPrototypeTransitionsOffset =
kCodeCacheOffset + kPointerSize;
Line length.

Powered by Google App Engine
This is Rietveld 408576698