Don't leak inobject space when transforming to fast properties without descriptors.

Review URL: https://chromiumcodereview.appspot.com/10828112

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12241 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
verwaest@chromium.org 2012-08-01 10:50:26 +00:00
parent 3bb994c4e4
commit bc86ec4d5f

View File

@ -12577,7 +12577,7 @@ MaybeObject* StringDictionary::TransformPropertiesToFastFor(
if (instance_descriptor_length == 0) { if (instance_descriptor_length == 0) {
ASSERT_LE(unused_property_fields, inobject_props); ASSERT_LE(unused_property_fields, inobject_props);
// Transform the object. // Transform the object.
new_map->set_unused_property_fields(unused_property_fields); new_map->set_unused_property_fields(inobject_props);
obj->set_map(new_map); obj->set_map(new_map);
obj->set_properties(heap->empty_fixed_array()); obj->set_properties(heap->empty_fixed_array());
// Check that it really works. // Check that it really works.