diff options
Diffstat (limited to 'deps/v8/src/field-index-inl.h')
-rw-r--r-- | deps/v8/src/field-index-inl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/field-index-inl.h b/deps/v8/src/field-index-inl.h index 042e4fbdd2..2e6693ce38 100644 --- a/deps/v8/src/field-index-inl.h +++ b/deps/v8/src/field-index-inl.h @@ -89,8 +89,7 @@ inline int FieldIndex::GetLoadByFieldIndex() const { inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) { PropertyDetails details = map->instance_descriptors()->GetDetails(descriptor_index); - int field_index = - map->instance_descriptors()->GetFieldIndex(descriptor_index); + int field_index = details.field_index(); return ForPropertyIndex(map, field_index, details.representation().IsDouble()); } @@ -119,6 +118,7 @@ inline int FieldIndex::GetKeyedLookupCacheIndex() const { } -} } // namespace v8::internal +} // namespace internal +} // namespace v8 #endif |