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

Issue 17308: Allocate as many object-literal properties as possible inobject.... (Closed)

Created:
11 years, 11 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Allocate as many object-literal properties as possible inobject. This can lead to large objects which wastes a lot of space if we normalize properties. We therfore clear the inobject properties when normalizing properties. This is done by adjusting the instance size in the new map and overwriting the inobject properties with a filler. Committed: http://code.google.com/p/v8/source/detail?r=1051

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -59 lines) Patch
M src/factory.h View 2 chunks +4 lines, -4 lines 0 comments Download
M src/factory.cc View 3 chunks +25 lines, -11 lines 0 comments Download
M src/handles.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 6 chunks +20 lines, -10 lines 0 comments Download
M src/objects.cc View 1 2 3 4 14 chunks +60 lines, -13 lines 0 comments Download
M src/runtime.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M test/mjsunit/large-object-literal.js View 1 2 1 chunk +22 lines, -15 lines 0 comments Download
A test/mjsunit/object-literal-gc.js View 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mads Ager (chromium)
11 years, 11 months ago (2009-01-09 12:23:30 UTC) #1
Kasper Lund
LGTM, but I think you should extend the test case to make sure the normalization ...
11 years, 11 months ago (2009-01-09 13:45:23 UTC) #2
Dean McNamee
Before: ["FIXED_ARRAY_TYPE", 3238656], After: ["FIXED_ARRAY_TYPE", 216438], More than 10x less FIXED_ARRAY_TYPEs were GC'd in my ...
11 years, 11 months ago (2009-01-09 14:29:00 UTC) #3
Dean McNamee
Performance improvements, 17s vs 19s. On 2009/01/09 14:29:00, Dean McNamee wrote: > Before: > ["FIXED_ARRAY_TYPE", ...
11 years, 11 months ago (2009-01-09 15:56:31 UTC) #4
Mads Ager (chromium)
On 2009/01/09 13:45:23, Kasper Lund wrote: > LGTM, but I think you should extend the ...
11 years, 11 months ago (2009-01-12 10:47:32 UTC) #5
Dean McNamee
11 years, 11 months ago (2009-01-12 11:04:00 UTC) #6
http://codereview.chromium.org/17308/diff/807/814
File src/objects.h (right):

http://codereview.chromium.org/17308/diff/807/814#newcode174
Line 174: // PropertyNormalizationMode is used to specify wheter or not to
whether, (you can also drop the or not)

Powered by Google App Engine
This is Rietveld 408576698