diff options
Diffstat (limited to 'deps/v8/src/objects/field-index.h')
-rw-r--r-- | deps/v8/src/objects/field-index.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/deps/v8/src/objects/field-index.h b/deps/v8/src/objects/field-index.h index 4fae87774d..fbde0bc609 100644 --- a/deps/v8/src/objects/field-index.h +++ b/deps/v8/src/objects/field-index.h @@ -5,6 +5,8 @@ #ifndef V8_OBJECTS_FIELD_INDEX_H_ #define V8_OBJECTS_FIELD_INDEX_H_ +// TODO(jkummerow): Consider forward-declaring instead. +#include "src/objects/internal-index.h" #include "src/objects/property-details.h" #include "src/utils/utils.h" @@ -27,9 +29,10 @@ class FieldIndex final { Map map, int index, Representation representation = Representation::Tagged()); static inline FieldIndex ForInObjectOffset(int offset, Encoding encoding); - static inline FieldIndex ForDescriptor(Map map, int descriptor_index); + static inline FieldIndex ForDescriptor(Map map, + InternalIndex descriptor_index); static inline FieldIndex ForDescriptor(Isolate* isolate, Map map, - int descriptor_index); + InternalIndex descriptor_index); inline int GetLoadByFieldIndex() const; |