5 #ifndef V8_OBJECTS_STRING_TABLE_H_ 6 #define V8_OBJECTS_STRING_TABLE_H_ 8 #include "src/objects/hash-table.h" 11 #include "src/objects/object-macros.h" 22 DCHECK_NE(0, hash_field_);
27 inline void set_hash_field(
uint32_t hash_field);
35 static inline bool IsMatch(Key key,
Object* value) {
36 return key->IsMatch(value);
39 static inline uint32_t Hash(
Isolate* isolate, Key key) {
return key->Hash(); }
45 static inline RootIndex GetMapRootIndex();
47 static const int kPrefixSize = 0;
48 static const int kEntrySize = 1;
76 Isolate* isolate, uint16_t c1, uint16_t c2);
83 static void EnsureCapacityForDeserialization(
Isolate* isolate,
int expected);
87 static const int kMaxEmptyFactor = 4;
88 static const int kMinCapacity = 2048;
89 static const int kMinShrinkCapacity = kMinCapacity;
92 template <
bool seq_one_byte>
104 static const int kPrefixSize = 0;
105 static const int kEntrySize = 1;
122 #include "src/objects/object-macros-undef.h" 124 #endif // V8_OBJECTS_STRING_TABLE_H_