Lines Matching defs:hash_value
27 // base::hash is implemented by calling the hash_value function. The namespace
29 // lookup. So if there is a free function hash_value in the same namespace as a
46 // size_t hash_value(Point const& p) {
55 // size_t hash_code = h(p); // calls bar::hash_value(Point const&)
89 V8_INLINE size_t hash_value(type v) { return static_cast<size_t>(v); }
95 V8_BASE_EXPORT size_t hash_value(unsigned int);
96 V8_BASE_EXPORT size_t hash_value(unsigned long); // NOLINT(runtime/int)
97 V8_BASE_EXPORT size_t hash_value(unsigned long long); // NOLINT(runtime/int)
100 V8_INLINE size_t hash_value(signed type v) { \
101 return hash_value(bit_cast<unsigned type>(v)); \
110 V8_INLINE size_t hash_value(float v) {
112 return v != 0.0f ? hash_value(bit_cast<uint32_t>(v)) : 0;
115 V8_INLINE size_t hash_value(double v) {
117 return v != 0.0 ? hash_value(bit_cast<uint64_t>(v)) : 0;
121 V8_INLINE size_t hash_value(const T (&v)[N]) {
126 V8_INLINE size_t hash_value(T (&v)[N]) {
131 V8_INLINE size_t hash_value(T* const& v) {
132 return hash_value(bit_cast<uintptr_t>(v));
136 V8_INLINE size_t hash_value(std::pair<T1, T2> const& v) {
142 V8_INLINE size_t operator()(T const& v) const { return hash_value(v); }
149 return ::v8::base::hash_value(v); \
170 return ::v8::base::hash_value(v);