uint64_t TypeProfileKey::hash() const { /* * The reason we don't use SrcKey::hash() here is that it isn't stable * across runs of the same code, because function IDs depend on the order * of the request stream. This makes debugging this module really * difficult, since the predictions can be wildly different from run to * run. Function names and bytecode offsets are not racy. */ return hash_int64_pair(m_func->fullName()->hash(), m_offset); }
uint64_t TypeProfileKey::hash() const { return hash_int64_pair(m_kind, m_name->hash()); }