| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 8d9f328f431fa71a2c9fd443210656c5983b964c..2601ed1060566ea2175ad9bb5f0f4ea8fb48e1f2 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -13270,8 +13270,7 @@ MaybeObject* StringDictionary::TransformPropertiesToFastFor(
|
| PropertyType type = DetailsAt(i).type();
|
| ASSERT(type != FIELD);
|
| instance_descriptor_length++;
|
| - if (type == NORMAL &&
|
| - (!value->IsJSFunction() || heap->InNewSpace(value))) {
|
| + if (type == NORMAL && !value->IsJSFunction()) {
|
| number_of_fields += 1;
|
| }
|
| }
|
| @@ -13336,7 +13335,7 @@ MaybeObject* StringDictionary::TransformPropertiesToFastFor(
|
| int enumeration_index = details.descriptor_index();
|
| PropertyType type = details.type();
|
|
|
| - if (value->IsJSFunction() && !heap->InNewSpace(value)) {
|
| + if (value->IsJSFunction()) {
|
| ConstantFunctionDescriptor d(key,
|
| JSFunction::cast(value),
|
| details.attributes(),
|
|
|