#ifndef V8_OBJECTS_STRING_TABLE_INL_H_
#define V8_OBJECTS_STRING_TABLE_INL_H_
#include "src/objects/string-table.h"
#include "src/objects/object-macros.h"
namespace v8 {
namespace internal {
StringTableKey::StringTableKey(uint32_t raw_hash_field, uint32_t length)
: raw_hash_field_(raw_hash_field), length_(length) {}
void StringTableKey::set_raw_hash_field(uint32_t raw_hash_field) {
raw_hash_field_ = raw_hash_field;
}
uint32_t StringTableKey::hash() const {
return Name::HashBits::decode(raw_hash_field_);
}
}
}
#include "src/objects/object-macros-undef.h"
#endif