Reviewers: Yang,
Message:
PTAL.
Description:
Don't leak inobject space when transforming to fast properties without
descriptors.
Please review this at https://chromiumcodereview.appspot.com/10828112/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/objects.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
b092d8d67c6d0b62a48dc04abb1a0132e109bafd..6dbc41ea9c18d8a3cc852408ebf228460 03c256d
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12577,7 +12577,7 @@ MaybeObject*
StringDictionary::TransformPropertiesToFastFor(
if (instance_descriptor_length == 0) {
ASSERT_LE(unused_property_fields, inobject_props);
// 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_properties(heap->empty_fixed_array());
// Check that it really works.