| Index: src/compiler/js-create-lowering.cc
|
| diff --git a/src/compiler/js-create-lowering.cc b/src/compiler/js-create-lowering.cc
|
| index 6874f301f7b74b947211e38fd72d40b905c64cac..0025b78a917a902dd0a703f3c824c321e9540b74 100644
|
| --- a/src/compiler/js-create-lowering.cc
|
| +++ b/src/compiler/js-create-lowering.cc
|
| @@ -179,7 +179,7 @@ bool IsFastLiteral(Handle<JSObject> boilerplate, int max_depth,
|
| int limit = boilerplate->map()->NumberOfOwnDescriptors();
|
| for (int i = 0; i < limit; i++) {
|
| PropertyDetails details = descriptors->GetDetails(i);
|
| - if (details.type() != DATA) continue;
|
| + if (details.location() != kField) continue;
|
| if ((*max_properties)-- == 0) return false;
|
| FieldIndex field_index = FieldIndex::ForDescriptor(boilerplate->map(), i);
|
| if (boilerplate->IsUnboxedDoubleField(field_index)) continue;
|
| @@ -1186,7 +1186,7 @@ Node* JSCreateLowering::AllocateFastLiteral(
|
| for (int i = 0; i < boilerplate_nof; ++i) {
|
| PropertyDetails const property_details =
|
| boilerplate_map->instance_descriptors()->GetDetails(i);
|
| - if (property_details.type() != DATA) continue;
|
| + if (property_details.location() != kField) continue;
|
| Handle<Name> property_name(
|
| boilerplate_map->instance_descriptors()->GetKey(i), isolate());
|
| FieldIndex index = FieldIndex::ForDescriptor(*boilerplate_map, i);
|
|
|