Allocate as many object-literal properties as possible inobject.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 Jan 2009 10:59:58 +0000 (10:59 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 12 Jan 2009 10:59:58 +0000 (10:59 +0000)
commit12854e6c672b872e9d9bc7019da9030ff8e037b0
treef7b0f4037018428cc9835a30111ac8e46c8c1b8d
parent4a16e4928a23b2279dcdde56bcdbc507ae200d17
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.
Review URL: http://codereview.chromium.org/17308

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1051 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/factory.cc
src/factory.h
src/handles.cc
src/handles.h
src/heap.cc
src/objects.cc
src/objects.h
src/runtime.cc
test/mjsunit/large-object-literal.js
test/mjsunit/object-literal-gc.js [new file with mode: 0644]