Relax restrictions on CONSTANT_FUNCTION descriptors in TransformPropertiesToFastFor.

Since r10174 they are not required to be in new space.

R=danno@chromium.org
BUG=

Review URL: https://codereview.chromium.org/11418181

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13077 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
vegorov@chromium.org 2012-11-28 14:02:30 +00:00
parent 028f85a244
commit 18d987e505

View File

@ -13269,8 +13269,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;
}
}
@ -13335,7 +13334,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(),