Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 19 of 19) sorted by relevance

/art/runtime/
Dgc_map.h79 uint32_t hash = native_offset; in Hash() local
80 hash ^= (hash >> 20) ^ (hash >> 12); in Hash()
81 hash ^= (hash >> 7) ^ (hash >> 4); in Hash()
82 return hash; in Hash()
Dutf.cc111 uint32_t hash = 0; in ComputeUtf16Hash() local
113 hash = hash * 31 + *chars++; in ComputeUtf16Hash()
115 return static_cast<int32_t>(hash); in ComputeUtf16Hash()
119 size_t hash = 0; in ComputeModifiedUtf8Hash() local
121 hash = hash * 31 + *chars++; in ComputeModifiedUtf8Hash()
123 return static_cast<int32_t>(hash); in ComputeModifiedUtf8Hash()
Dclass_linker.h130 Thread* self, const char* descriptor, size_t hash,
150 mirror::Class* DefineClass(Thread* self, const char* descriptor, size_t hash,
157 mirror::Class* LookupClass(Thread* self, const char* descriptor, size_t hash,
441 mirror::Class* InsertClass(const char* descriptor, mirror::Class* klass, size_t hash)
515 mirror::Class* CreateArrayClass(Thread* self, const char* descriptor, size_t hash,
649 size_t hash)
652 mirror::Class* UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash)
Dclass_linker.cc1589 size_t hash, const std::vector<const DexFile*>& class_path) { in FindInClassPath() argument
1591 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor, hash); in FindInClassPath()
1609 size_t hash, in FindClassInPathClassLoader() argument
1615 ClassPathEntry pair = FindInClassPath(descriptor, hash, boot_class_path_); in FindClassInPathClassLoader()
1617 mirror::Class* klass = LookupClass(self, descriptor, hash, nullptr); in FindClassInPathClassLoader()
1621 *result = DefineClass(self, descriptor, hash, NullHandle<mirror::ClassLoader>(), in FindClassInPathClassLoader()
1644 bool recursive_result = FindClassInPathClassLoader(soa, self, descriptor, hash, h_parent, result); in FindClassInPathClassLoader()
1694 const DexFile::ClassDef* dex_class_def = cp_dex_file->FindClassDef(descriptor, hash); in FindClassInPathClassLoader()
1697 mirror::Class* klass = DefineClass(self, descriptor, hash, class_loader, in FindClassInPathClassLoader()
1729 const size_t hash = ComputeModifiedUtf8Hash(descriptor); in FindClass() local
[all …]
Ddex_file.cc473 const DexFile::ClassDef* DexFile::FindClassDef(const char* descriptor, size_t hash) const { in FindClassDef()
474 DCHECK_EQ(ComputeModifiedUtf8Hash(descriptor), hash); in FindClassDef()
478 auto it = index->FindWithHash(descriptor, hash); in FindClassDef()
Delf_file.cc833 Elf_Word hash = elfhash(symbol_name.c_str()); in FindDynamicSymbol() local
834 Elf_Word bucket_index = hash % GetHashBucketNum(); in FindDynamicSymbol()
Ddex_file.h673 const ClassDef* FindClassDef(const char* descriptor, size_t hash) const;
/art/compiler/utils/
Ddedupe_set_test.cc30 size_t hash = 0; in operator ()() local
32 hash += c; in operator ()()
33 hash += hash << 10; in operator ()()
34 hash += hash >> 6; in operator ()()
36 return hash; in operator ()()
/art/compiler/driver/
Dcompiler_driver.h707 uint32_t hash = 0; in operator() local
719 hash ^= k; in operator()
720 hash = ((hash << r2) | (hash >> (32 - r2))) * m + n; in operator()
739 hash ^= k1; in operator()
742 hash ^= len; in operator()
743 hash ^= (hash >> 16); in operator()
744 hash *= 0x85ebca6b; in operator()
745 hash ^= (hash >> 13); in operator()
746 hash *= 0xc2b2ae35; in operator()
747 hash ^= (hash >> 16); in operator()
[all …]
/art/runtime/base/
Dhash_set.h58 template <class T, class EmptyFn = DefaultEmptyFn<T>, class HashFn = std::hash<T>,
312 Iterator FindWithHash(const K& element, size_t hash) { in FindWithHash() argument
313 return Iterator(this, FindIndex(element, hash)); in FindWithHash()
317 ConstIterator FindWithHash(const K& element, size_t hash) const { in FindWithHash() argument
318 return ConstIterator(this, FindIndex(element, hash)); in FindWithHash()
326 void InsertWithHash(const T& element, size_t hash) { in InsertWithHash() argument
327 DCHECK_EQ(hash, hashfn_(element)); in InsertWithHash()
332 const size_t index = FirstAvailableSlot(IndexForHash(hash)); in InsertWithHash()
401 size_t IndexForHash(size_t hash) const { in IndexForHash() argument
402 return hash % num_buckets_; in IndexForHash()
[all …]
Dhash_map.h52 class HashFn = std::hash<Key>, class Pred = std::equal_to<Key>,
Dscoped_arena_containers.h59 template <typename K, typename V, class Hash = std::hash<K>, class KeyEqual = std::equal_to<K>>
/art/test/004-SignalTest/src/
DMain.java33 int hash = o.hashCode(); in main() local
36 System.out.println("hash: " + hash); in main()
/art/compiler/dwarf/
Ddebug_info_entry_writer.h35 uint32_t hash = 2166136261u; in operator() local
37 hash = (hash ^ v[i]) * 16777619u; in operator()
39 return hash; in operator()
/art/test/120-hashcode/
Dinfo.txt1 Check that object hashCode and System.identityHashCode never cause the hash to change.
/art/compiler/
Delf_builder.h424 std::vector<Elf_Word> hash; in Write() local
425 hash.push_back(nbuckets); in Write()
426 hash.push_back(chain_size); in Write()
427 uint32_t bucket_offset = hash.size(); in Write()
429 hash.resize(hash.size() + nbuckets + chain_size, 0); in Write()
431 Elf_Word* buckets = hash.data() + bucket_offset; in Write()
432 Elf_Word* chain = hash.data() + chain_offset; in Write()
456 return WriteArray(elf_file, hash.data(), hash.size()); in Write()
/art/runtime/native/
Ddalvik_system_DexFile.cc233 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative() local
235 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), hash); in DexFile_defineClassNative()
243 mirror::Class* result = class_linker->DefineClass(soa.Self(), descriptor.c_str(), hash, in DexFile_defineClassNative()
/art/compiler/optimizing/
Dstack_map_stream.h52 std::hash<int64_t> inner_hash_fn_;
/art/runtime/gc/
Dheap.cc3741 uint64_t hash = 0; in CheckGcStressMode() local
3743 hash = hash * 2654435761 + backtrace[i]; in CheckGcStressMode()
3744 hash += (hash >> 13) ^ (hash << 6); in CheckGcStressMode()
3747 new_backtrace = seen_backtraces_.find(hash) == seen_backtraces_.end(); in CheckGcStressMode()
3749 seen_backtraces_.insert(hash); in CheckGcStressMode()