Index: src/field-index-inl.h |
diff --git a/src/field-index-inl.h b/src/field-index-inl.h |
index dd13709c78708b69e03e381175846f5e83164e25..d3bf94aec8e726d5d79ec05ed21a449c1d46944d 100644 |
--- a/src/field-index-inl.h |
+++ b/src/field-index-inl.h |
@@ -75,6 +75,24 @@ inline FieldIndex FieldIndex::ForDescriptor(Map* map, int descriptor_index) { |
} |
+inline FieldIndex FieldIndex::ForKeyedLookupCacheIndex(Map* map, int index) { |
+ if (FLAG_compiled_keyed_generic_loads) { |
+ return ForLoadByFieldIndex(map, index); |
+ } else { |
+ return ForPropertyIndex(map, index); |
+ } |
+} |
+ |
+ |
+inline int FieldIndex::GetKeyedLookupCacheIndex() const { |
+ if (FLAG_compiled_keyed_generic_loads) { |
+ return GetLoadByFieldIndex(); |
+ } else { |
+ return property_index(); |
+ } |
+} |
+ |
+ |
} } // namespace v8::internal |
#endif |