| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 8f21f3ceb86e29d6bdfaa55545c4065928f92262..b0ea1b3a91c1766fd1c59843bad957e25f840520 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -5401,7 +5401,7 @@ static bool IsFastLiteral(Handle<JSObject> boilerplate,
|
| 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;
|
| @@ -11620,7 +11620,7 @@ void HOptimizedGraphBuilder::BuildEmitInObjectProperties(
|
| int copied_fields = 0;
|
| for (int i = 0; i < limit; i++) {
|
| PropertyDetails details = descriptors->GetDetails(i);
|
| - if (details.type() != DATA) continue;
|
| + if (details.location() != kField) continue;
|
| copied_fields++;
|
| FieldIndex field_index = FieldIndex::ForDescriptor(*boilerplate_map, i);
|
|
|
|
|